insert variable in simple quotes | select-string -argumentlist '$variable'

33 Views Asked by At

I would like to insert a variable into simple quotes of a "ArgumentList" for start-process, but it doesn't do the job.

this is what i expected to work :

Start-Process -FilePath "C:/PATH/application.exe" -ArgumentList '-I "C:/PATH/$VAR1"','-arg2 "$VAR2"'

the arguments are stricts and the manual command would look like this in the terminal :

cctk.exe -I "inputfile" --ValSetupPwd=password

Thank's for the help !

0

There are 0 best solutions below