title: Which symbol is escape character in cmd?
body: <p>I have this code:</p>
  
  <pre><code>powershell -command "&amp; { (New-Object Net.WebClient).DownloadFile('linkToMyFile.file', 'C:\my.file') }"
  </code></pre>
  
  <p>it's for download file.<br>
  When I execute it in cmd on remote server - everything is ok.<br>
  But when I want to execute this code from my computer on remote server using paexec, I have some troubles with escape characters.<br>
  Command in my CMD: </p>
  
  <pre><code>psexec.exe \\remoteServer.0.1 -u username -p password -dbg -lo D:\PsExec.log cmd /c "powershell -command "&amp; { (New-Object Net.WebClient).DownloadFile('linkToMyFile.file', 'C:\my.file') }""
  </code></pre>
  
  <p>I try to use ^ symbol, but the same error;<br>
  Code using ^ symbol for double-quotes:</p>
  
  <pre><code>psexec.exe \\remoteServer.0.1 -u username -p password -dbg -lo D:\PsExec.log cmd /c "powershell -command ^"&amp; { (New-Object Net.WebClient).DownloadFile('linkToMyFile.file', 'C:\my.file') }^""
  </code></pre>
  
  <p>Also, I tried to use <code>\</code> (like in PHP) for escape, but have the same result.<br>
  Help with this or give advice how I can remotely download a file using the command line.</p>