Can skip $Job, leaving just:
Do $System.Process.Terminate(,<desired error code>)it would terminate the current job.
Question: are you using the error code? I'm always exiting with error code 1 in case of any errors, but is there an advantage in using some custom error codes here?
- Log in to post comments
