automation-pilot-executor-executescriptlisted
Install: claude install-skill williamcorrea23/sap-router-skill
# Script Execution Guide
SAP Automation Pilot provides dedicated commands for each script language. Choose the right command for your language — do not use `ExecuteScript` as a bash wrapper to run Python, Node.js, or PowerShell.
## Command Overview
| Command | ID | Use for |
|---------|-----|---------|
| `ExecuteScript:1` | `scripts-sapcp:ExecuteScript:1` | Bash (legacy, Base64 script) |
| `ExecuteScript:2` | `scripts-sapcp:ExecuteScript:2` | Bash (recommended, plain text) |
| `ExecutePythonScript:1` | `scripts-sapcp:ExecutePythonScript:1` | Python scripts |
| `ExecuteNodeJsScript:1` | `scripts-sapcp:ExecuteNodeJsScript:1` | Node.js scripts |
| `ExecutePowerShellScript:1` | `scripts-sapcp:ExecutePowerShellScript:1` | PowerShell scripts |
Each command also has a `Sensitive*` variant (e.g. `SensitiveExecutePythonScript:1`) that marks the output as sensitive so it is never logged.
---
## ExecuteScript (Bash)
### Version Differences (CRITICAL)
**Version 1** (`scripts-sapcp:ExecuteScript:1`): `script` and `stdin` must be Base64-encoded
**Version 2** (`scripts-sapcp:ExecuteScript:2`): Plain text — always prefer this
| Parameter | Type | Required | Default | Notes |
|-----------|------|----------|---------|-------|
| `script` | string | ✅ | - | V1: Base64 encoded / V2: Plain text |
| `stdin` | string | ❌ | - | Sensitive. V1: Base64 / V2: Plain text. Multiple values: `\n` separator |
| `parameters` | array | ❌ | `[]` | Passed as `$1`, `$2`, `$3`... in order |
| `environmen