Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

PSEval

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;