Run powershell in new window
powershell
Solution
Use the `start` command. In a CMD prompt, try:
`start powershell -noexit -command "get-date"`
For Start/Run (or Win+r) prompt, try:
`cmd /c start powershell -noexit -command "get-date"`
The `-noexit` will tell Powershell to, well, not to exit. If you omit this parameter, the command will be executed and you are likely to just see a glimpse of a Powershell window. For interactive use, this is a must. For scripts it is not needed.
Edit:
`start` is an internal command for CMD. In Powershell it is an alias for `Start-Process`. These are not the same thing.
As for why the window is black, that's because the shortcut for Powershell.exe is configured to set the background blue.
Problem
I would like to run new powershell window with parameters. I was trying to run following: ``` powershell -Command "get-date" ``` but everything happens in same console. Is there a simple way to do this?