This command opens a new powershell window, runs the commands, and then exits:
Start-Process powershell { echo "hello"; sleep 1; echo "two"; sleep 1; echo "goodbye" }
If I instead launch Powershell Core, it opens a new window but the new window exits immediately:
Start-Process pwsh { echo "hello"; sleep 1; echo "two"; sleep 1; echo "goodbye" }
What's the correct way to do this sort of invocation with pwsh?