run_powershell
Run PowerShell scripts/commands on Windows in a hidden process and capture stdout, stderr, and exit code for system administration.
Instructions
Run a PowerShell script/command on this Windows host in a hidden process (no console window appears). Returns stdout, stderr and exit code. Use for any Windows command, file, or system task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. | |
| script | Yes | PowerShell script or command to execute. | |
| timeoutMs | No | Hard timeout in ms (default 60000). |