title: How to start PowerShell in a new window from .bat and run a .ps1 without exiting the console?
body: <p>I would like to have a .bat file that </p>
  
  <ul>
  <li>opens a PowerShell console in a new window</li>
  <li>and runs a .ps1 script</li>
  <li>and does not exit and close the PowerShell console.</li>
  </ul>
  
  <p>My batch file contains the following line:</p>
  
  <pre><code>start powershell.exe -Command "&amp;'D:\MyToolkit\ToolKit.ps1'"
  </code></pre>
  
  <p>However, it closes the PowerShell after running the script.</p>
  
  <p>Any advice?
  Thanks</p>