Consider the following scenario:
- You use Windows Powershell 2.0 to call a Powershell script that returns a negative exit code.
Example:- To check if a product installation finished successfully or not.
- If a scheduled task with a Powershell script finished successfully or not.
- PowerShell 2.0 may not return the correct exit code.