So führen Sie Power Shell -Skript aus

powershell -Command D:\SRINIVAS_WORKS\POWERSHELL\testPsScript.ps1  --> to run on same terinal

powershell -NoExit -Command & D:\SRINIVAS_WORKS\POWERSHELL\testPsScript.ps1

Srinivas Vadige