title: Need to log the error details when powershell goes down accidentally
body: <p>We are having a scheduler which is developed in powershell 1.0. It will be running in infinite loop as a service in our server. Some times powershell is going down automatically. </p>
  
  <p>We need to log some useful information to troubleshoot this issue. 
  Can someone please help us on this?</p>
  
  <p>Thanks,</p>
  
  <p>Santhosh</p>