ExitStatus Property
Contains the last commands exit status.
Syntax
public var exitStatus: Int32 {
get {...} }
Default Value
0
Remarks
Check this property to obtain the exit status (also sometimes referred to as errorlevel) of the last command or shell session.
This property is read-only.