<p>For example; with the old command prompt it would be:</p>

<pre><code>cmd.exe /k mybatchfile.bat
</code></pre>

Drop into a cmd instance (or indeed PowerShell itself) and type this:
```
```
powershell -?
```
```
You'll see that powershell.exe has a "-noexit" parameter which tells it not to exit after executing a "startup command".