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

ParameterTypeRequiredDefaultDescription
PowerShell scriptmultiline
OptionalInline PowerShell. Ignored if a .ps1 file is given below.
Example: Get-Date
Supports variables
Script file (.ps1)file
OptionalOptional. If set, this file is run instead of the inline script.
Example: C:/scripts/task.ps1
Supports variables
Argumentsstring
OptionalPassed to the .ps1 file (only used with a script file).
Supports variables
Store stdout invariable
Optional
Example: output

More Programs & Processes commands

Ready to automate your busywork?

Start your free 10-day trial today. No credit card, no commitment.