Answers for "execute powershell script windows"

PHP
4

cmd run powershell command

powershell -ExecutionPolicy Bypass -Command "your script here"
Posted by: Guest on November-12-2020
0

execute powershell file windows

powershell -ExecutionPolicy Bypass -File script.ps1
Posted by: Guest on April-19-2022
9

powershell script run

./myscript.ps1  //if is in the current directory
c:/scripts/myscript.ps1  //if you want to use the full path
&"C:/my path with space/myscript.ps1"  //if your path has spaces
Posted by: Guest on February-05-2020

Code answers related to "execute powershell script windows"

Browse Popular Code Answers by Language