title: Powershell: Find running process, if process is running abort the script, if not then continue with the script
body: <p>Looking to update Putty on 100+ PCs using SCCM.</p>
  
  <p>Putty isn't very good at overwriting so I've created a Powershell script to remove any older versions and then install the new one.</p>
  
  <p>I'd like to add a line or two at the start to check if the user is already has Putty open.  If putty is open, the script should cancel/abort.  If it's not running the script should continue and uninstall the old version and install the new.</p>
  
  <p>Any ideas?</p>