Syntax
Exit-PSScript -exitcode <> -exitmessage <string>
Parameters
exitcode
The error code to end running of the script, see Error Codes for examples of predefined error codes
...
Exit-PSScript -exitcode <> -exitmessage <string>
exitcode
The error code to end running of the script, see Error Codes for examples of predefined error codes
...