run_command
Run a command in an existing SSH or WinRM session. Use it to execute shell commands or PowerShell scripts interactively.
Instructions
Run a command in the existing session. SSH uses the interactive shell; WinRM expects PowerShell script text and runs it via pywinrm run_ps().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||