title: Error while using sqlcmd with Start-Job in PowerShell
body: <p>When I'm executing this command in PowerShell, everything works fine:</p>
  <pre><code>sqlcmd -S dwh -i &quot;.\script.sql&quot; -o &quot;.\log.txt&quot;
  </code></pre>
  <p>However, when I'd like to set up several jobs, the following command doesn't work:</p>
  <pre><code>Start-Job -Name TestSqlCmd -ScriptBlock {sqlcmd -S dwh -i &quot;.\script.sql&quot; -o &quot;.\log.txt&quot;}
  </code></pre>
  <p>I got the following error:</p>
  <pre><code>Sqlcmd: Error: Error occurred while opening or operating on file .\script.sql (Reason: The system cannot find the path specified).
      + CategoryInfo          : NotSpecified: (Sqlcmd: Error: ...ath specified).:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
      + PSComputerName        : localhost
  </code></pre>
  <p>Could you help me with that issue please?</p>