--- title: "PSEval" ---
This is generated from the built in components of BuildMaster 2023.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your BuildMaster instance to see exactly what operations are available.

Returns the result of a PowerShell script.

Script usage:

PSEval(ScriptText)

Parameters:

NameDescription
ScriptTextThe 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;