execute_powershell
Execute raw PowerShell scripts for arbitrary Windows automation tasks such as registry edits, service control, and file inspection.
Instructions
Run a raw PowerShell script or command on the machine running the driver, inside the session's persistent PowerShell process. Use for arbitrary automation not covered by another tool (registry edits, service control, file inspection, etc). Runs with the same privileges as the driver process — treat as unrestricted code execution.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>"
},
"name": "execute_powershell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | PowerShell script or command to execute |