I am having problems sending variables into the invoke-expression command below.
This launches cmd, so that PowerShell is subsequently launched in a separate Window.
invoke-expression ‘cmd /c start powershell -NoExit -Command {cd C:\Users\me\AppData\Local\\app-1.1.4\resources\app.asar.unpacked\daemon\;$host.ui.RawUI.WindowTitle = $job;
start-sleep 0 ;
.\Program.exe blob make -k 32 -b 3390 -r 2 -n 1 -t $TempDisk -d $global:finaldisk -u 128 | tee C:\Users\me\Desktop\folder\Logs\Job-1.log }'
I would prefer variables for each of the command line values, but getting any at all working is a struggle :-)
Any ideas?
Many thanks
Paul