I'm trying to pass a variable to this command in PowerShell
Start-Process $devconloc -ArgumentList "\disable" '"'$GPUList[1]'"' -ErrorAction Stop
$GPUList[0]
is a hardware ID and needs to be passed to devcon.exe
in quotes:
"PCI\VEN_10DE&DEV_1CBB&SUBSYS_087D1028&REV_A1\4&44A1B07&0&0008"
But I get the following error
Start-Process : A positional parameter cannot be found that accepts argument '"'.
Any ideas what is happening?