Removed the top most trap since that would stop the ERRORLEVEL being set to 1 which is required for CI servers to detect if the build failed.  I updated the trap in the RunBuild function to call "exit(1)" instead of "break" - this way the ERRORLEVEL gets set to 1 if the build fails and if the user wants detailed error information they can run the build with the -debug parameter.
Removed the top most trap since that would stop the ERRORLEVEL being set to 1 which is required for CI servers to detect if the build failed.  I updated the trap in the RunBuild function to call "exit(1)" instead of "break" - this way the ERRORLEVEL gets set to 1 if the build fails and if the user wants detailed error information they can run the build with the -debug parameter.

psake/psake