execute_command
Run commands in PowerShell, CMD, or Git Bash shells directly on Windows systems using a secure CLI interface. Specify the command, shell type, and working directory for targeted execution.
Instructions
Execute a command in the specified shell (powershell, cmd, or gitbash)
Example usage (PowerShell):
{
"shell": "powershell",
"command": "Get-Process | Select-Object -First 5",
"workingDir": "C:\Users\username"
}
Example usage (CMD):
{
"shell": "cmd",
"command": "dir /b",
"workingDir": "C:\Projects"
}
Example usage (Git Bash):
{
"shell": "gitbash",
"command": "ls -la",
"workingDir": "/c/Users/username"
}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Command to execute | |
shell | Yes | Shell to use for command execution | |
workingDir | No | Working directory for command execution (optional) |