title: Throw an exception within an batch file
body: <p>I have created a couple of batch files to aid in the automation process of my deployments. 
  They work great, but I want to be able to have the file bomb out if a problem is found, obviously reporting the problem.</p>
  
  <p>I am planning on integrating the scripts into a TeamCity build, so if one of the scripts fails I need to stop the deployment process.</p>
  
  <p>One easy way is to make the script running a manual process, but that defeats the objective.</p>
  
  <p>Any advice would be great.</p>
  
  <p>Thanks,</p>