power_shell_write
Send a PowerShell command to a session, using buffer clearing to collect output reliably and avoid concurrent access issues.
Instructions
Send a command to a PowerShell shell session. Do NOT call this concurrently with power_shell_exec/power_shell_read on the same session_id — concurrent access to the same PowerShell process corrupts the output buffer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Buffer clear flag: 1 (default) = clear buffer before collecting, 0 = append to buffer | |
| command | Yes | The PowerShell command to send | |
| session_id | Yes | The session ID returned by power_shell_open |