Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

execute powershell script from command line with parameters

powershell -Command "& '<PATH_TO_PS1_FILE>' '<ARG_1>' '<ARG_2>' ... '<ARG_N>'"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #execute #powershell #script #command #line #parameters
ADD COMMENT
Topic
Name
2+5 =