PowerShell launch script in new instance

前端 未结 4 1004
失恋的感觉
失恋的感觉 2020-12-09 08:34

I have a Master script that has several options. When you select 1 in the menu, action 1 will be executed and afterwards you\'ll get back to the menu. This

4条回答
  •  误落风尘
    2020-12-09 08:57

    Instead of starting a cmd to start a new powershell instance you can:

    start powershell {echo hello}
    

    To prevent immediate exit of new started powershell:

    start powershell {echo hello; Read-Host}
    

提交回复
热议问题