run_script
Execute a PowerShell script as SYSTEM on specified endpoints, then return each endpoint's status and stdout output.
Instructions
Run a PowerShell script now, as SYSTEM, on the given endpoints (ids from list_endpoints) and wait up to wait_seconds for results. Returns each endpoint's status and output (stdout, capped at ~10,000 chars by Action1). Never reboots. Offline endpoints stay pending - check later with list_automation_instance_endpoint_results(instance_id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_id | Yes | ||
| script | Yes | ||
| endpoint_ids | Yes | ||
| wait_seconds | No |