title: How do I run a command from a network path in PowerShell/batch file
body: <p>Essentially what I'm trying to run is this: </p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>cd /d W:\RemoteMirror\ &amp;&amp; winscp.com /ini=nul /script=Remote_Mirror_WinSCP.txt
  </code></pre>
  
  <p>or this:</p>
  
  <pre class="lang-none prettyprint-override"><code>cd /d \\fileServer\RemoteMirror\ &amp;&amp; winscp.com /ini=nul /script=Remote_Mirror_WinSCP.txt
  </code></pre>
  
  <p>Of course, with SQL Server, I can't use UNC paths. But I'm not sure how to do it otherwise. I'm not too familiar with PowerShell yet, but that'd be my best guess.</p>