execute_powershell
Run PowerShell scripts and retrieve output securely via the Windows Command Line MCP Server, enabling controlled execution of complex operations and system tasks.
Instructions
Execute a PowerShell script and return its output. This allows for more complex operations and script execution. PowerShell must be in the allowed commands list.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
script | Yes | PowerShell script to execute | |
timeout | No | Timeout in milliseconds | |
workingDir | No | Working directory for the script |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"script": {
"description": "PowerShell script to execute",
"type": "string"
},
"timeout": {
"default": 30000,
"description": "Timeout in milliseconds",
"type": "number"
},
"workingDir": {
"description": "Working directory for the script",
"type": "string"
}
},
"required": [
"script"
],
"type": "object"
}