PSEval
- 14 May 2021
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
PSEval
- Updated on 14 May 2021
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
This is generated from the built in components of Otter 3.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.
PSEval
Returns the result of a PowerShell script.
Script usage:
PSEval(ScriptText)
Parameters:
Name | Description |
---|---|
☆ ScriptText | The PowerShell script to execute. This should be an expression. |
Example:
# set the $NextYear variable to the value of... next year set $PowershellScript = >> (Get-Date).year + 1 >>; set $NextYear = $PSEval($PowershellScript); Log-Information $NextYear;
Was this article helpful?