power_shell_exec
Execute a command in an open PowerShell session and retrieve the output, with optional delay and buffer control.
Instructions
Send a command to a PowerShell shell session and wait for the output. Combines write + delay + read in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Buffer clear flag: 1 (default) = clear buffer before collecting, 0 = append to buffer | |
| delay | No | Wait time in milliseconds before reading output (default: 1000) | |
| command | Yes | The PowerShell command to execute | |
| session_id | Yes | The session ID returned by power_shell_open |