Skip to main content

Scripting Tasks

Execute custom scripts in multiple languages across different execution environments.

scripting.run_script​

Display Name: Run Script

Execute a custom script in Bash, Python, JavaScript, or PowerShell. Scripts can run on Kubernetes, a local agent, or remotely via AWS SSM, Azure Run Command, GCP SSH, or SSH.

Run Script Task

Run Script Configuration

Parameters​

NameTypeRequiredDescription
scriptstringYesThe script to execute.
languagestringNoScript language. Options: bash, python, javascript, powershell. Default: bash.
argsarrayNoArguments to pass to the script.
envobjectNoEnvironment variables (key-value map).
executor_typestringNoExecution environment. Options: kubernetes, agent, aws_ssm, azure_run_command, gcp_compute_ssh, ssh.
os_typestringNoTarget OS. Options: linux, windows. Default: linux.
target_idstringNoVM/Instance ID for remote execution. Required for aws_ssm, azure_run_command, gcp_compute_ssh.
regionstringNoCloud region for remote execution. Required for aws_ssm, azure_run_command, gcp_compute_ssh.
integration_idintegrationNoSSH integration ID. Required for ssh executor type.
hoststringNoTarget host (hostname or IPv4) for the ssh executor type. Overrides the integration's host; required for agent SSH integrations without a fixed host.
portintegerNoTarget SSH port for the ssh executor type. Defaults to the integration's port.
cwdstringNoWorking directory for the script.
imagestringNoContainer image override (for kubernetes or agent executor types).
resourcesobjectNoResource limits for Kubernetes execution: cpu_request, cpu_limit, memory_request, memory_limit.
parser_typestringNoOutput format parser. Set to json to parse stdout as JSON.
account_idaccountNoNudgeBee account ID.

Output​

NameTypeDescription
dataanyScript output. If parser_type is json, this is a parsed object; otherwise, raw string.