title: How to close sql server connection on completion when using powershell?
body: <p>I am using the Sql Server powershell snapins (i.e. "SqlServerProviderSnapin100", "SqlServerCmdletSnapin100").  I execute scripts using powershell, but when I try to execute them again, I get a "No process is on the other end of the pipe" shared memory error.  I need to close Powershell, and restart it before it will work again.</p>
  
  <p>It appears that powershell is keeping a connection open, which is preventing the reexecution of the scripts.  </p>
  
  <p>Does anyone know how to solve this?</p>
  
  <p>Thanks.</p>