title: How to terminate a terminal session in a ps1 script
body: <p>How can I terminate a terminal/PowerShell window from a .ps1 script? I would like it to work the way <code>exit</code> in command line works, but when I put that in a PowerShell script it only terminates the script.</p>