execute-powershell-script
Execute a PowerShell script file with optional parameters and working directory support.
Instructions
Execute a PowerShell script file with optional parameters
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": {
"scriptPath": "<scriptPath>"
},
"name": "execute-powershell-script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptPath | Yes | Path to the PowerShell script file (.ps1) | |
| parameters | No | Optional parameters to pass to the script | |
| workingDirectory | No | Optional working directory for script execution |