How do I properly escape the quotes in the -param value in the following command line?
$cmd=\"\\\\server\\toto.exe -batch=B -param=\"sort1;parmt
I found myself in a similar predicament today while trying to run a command through a Node.js module:
I was using the PowerShell and trying to run:
command -e 'func($a)'
But with the extra symbols, PowerShell was mangling the arguments. To fix, I back-tick escaped double-quote marks:
command -e `"func($a)`"