I just asked about a problem and the suggested code has some obscure points for me.
Specifically on this line of code
powershell.exe -c "Start-Process -Verb RunAs cmd /k, ('%~f0' -replace '[ &]', '^$0')"
I would like to know what the comma after the
cmd /k
represents. What's this? How does it work? Is there a link to the documentation explaining this ?What's is the
$0
in the last part.'^$0')"