---
title: "PSEval"
---
Returns the result of a PowerShell script.
PSEval(ScriptText)
Name | Description |
---|---|
☆ ScriptText | The PowerShell script to execute. This should be an expression. |
# set the $NextYear variable to the value of... next year
set $PowershellScript = >>
(Get-Date).year + 1
>>;
set $NextYear = $PSEval($PowershellScript);
Log-Information $NextYear;