Run PowerShell
Run a PowerShell script (inline) or a .ps1 file and capture its output.
Programs & ProcessesRunPowerShellWindows only
What it does
Run a PowerShell script (inline) or a .ps1 file and capture its output.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| PowerShell script | multiline | Optional | Inline PowerShell. Ignored if a .ps1 file is given below. Example: Get-Date Supports variables | |
| Script file (.ps1) | file | Optional | Optional. If set, this file is run instead of the inline script. Example: C:/scripts/task.ps1 Supports variables | |
| Arguments | string | Optional | Passed to the .ps1 file (only used with a script file). Supports variables | |
| Store stdout in | variable | Optional | Example: output |
More Programs & Processes commands
Ready to automate your busywork?
Start your free 10-day trial today. No credit card, no commitment.