I made a new extension for TFS (Build Step), that's running a powershell script.
How can I exit the script that will make this build step to failed? (red "X" in the TFS steps). I tried exit code 99, when getting an exception but it's still green.
Should I throw exception without catching it from the power shell script?