Have KACE script fail if powershell script fails
We use write-host a lot to log what happened in a script.
Is there a way to force KACE to state the script failed based on a Powershell script check?
e.g. PS script checks for a file version. If that version is not correct then it shows in KACE that script failed.