Skip to main content
Version: 1.27 (Current)

Run PowerShell Script

Executes a script with Windows PowerShell.

Parameter Reference

ParameterDescriptionSupports TokensDefault
ScriptPowerShell Script to execute. For example [System.Security.Principal.WindowsIdentity]::GetCurrent().Name will return the identity of the App Pool. Visit this script repository for more examples. Can contain context tokens (for example [ContextTokenName]) and Tokens.NoNone
Output Token NameOptionally provide a token name where to store the output generated by Write-Output statements in the script. Note that other Write-* commands (such as Write-Host, Write-Information, etc) will not get captured in the output.NoNone