ScriptCs.exe returns an exit code

Scriptcs.exe returns an error code -1 if something goes wrong. Otherwise, it returns 0. It should help with integration with other tools and scripts.