title: How to end s Powershell script when running from cygwin
body: <p>I have a Powershell .ps script which does some elementary stuff in a windows machine. I invoke this script by ssh-ing to the windows machine. The Windows machine has cygwin Open-SSh installed on it. </p>
  
  <p>Problem : the script gets executed but doesn't return back to the SSH session.
  How do I get the powershell script to end and return control back to SSH session?</p>