[Solved] [Environment]::Exit(0) – MEANING OF THIS? [closed]
Classically, programs in MS-DOS and under the Windows Command Line (CMD.EXE) signalled errors by setting the system environment variable ERRORLEVEL to a non-zero value. PowerShell does not, by default, do this. If one wishes to invoke a PowerShell script, and have it behave like other programs (and batch files) when called from a batch file, … Read more