How can I start a non-blocking shell command in PowerShell? I can use Start-Process to start an executable but I have to split my parameters and it requires a full path instead of using the PATH variable.
I want to run something like:
Start-Process "npm run serve:dev"
instead of
Start-Process 'C:\\path\\to\\npm.exe' -ArgumentList "run", "serve:dev"
Invoke-Expression
accepts a single string but that's not non-blocking.