Run PowerShell Script
Executes a script with Windows PowerShell.
Parameter Reference
Parameter | Description | Supports Tokens | Default |
---|---|---|---|
Script | PowerShell 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. | No | None |
Output Token Name | Optionally 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. | No | None |