What is the correct way to return a non-zero exit code from a PowerShell script?
Using "return 7" causes adTempus to indicate that the return code was zero (0).
Using "exit 7" causes adTempus to indicate that the return code was one (1).
I found that I could use $host.SetShouldExit(7) to set the exit code in a PowerShell script. However, this also terminates the console host when testing interactively.
Is there a good solution? Is there any particular part of the adTempus documentation I should be reading?