# Executor.run

Execute the command or script.

```rhai
executor.run() -> CommandResult
```

Runs the command with all configured options and returns a `CommandResult` containing stdout, stderr, success status, and exit code.

## Returns

- `CommandResult` with properties: `stdout`, `stderr`, `success`, `code`

## Example

```rhai
let result = execute("hostname")
    .silent()
    .run()?;
print(`Host: ${result.stdout}`);
print(`Success: ${result.success}`);
print(`Exit code: ${result.code}`);
```
