You can start a PowerShell or command shell with these commands:
1 2 | Start-Process cmd Start-Process powershell |
You can start an admin PowerShell or command shell with these commands:
1 2 | Start-Process powershell -Verb RunAs Start-Process cmd -Verb RunAs |
Also, you can specify the working directory:
1 2 3 4 | Start-Process powershell -Verb RunAs -WorkingDirectory C:\ C:\WINDOWS\system32 Start-Process powershell -WorkingDirectory C:\ C:\ |