title: Invoke-Sqlcmd cannot find file when BULK INSERT is used
body: <p>I'm having difficulty invoking the following PowerShell command, from the command line as well as in a script:</p>
  <pre><code>Invoke-Sqlcmd -HostName **HOST** -Database **DATABASE** 
  -Username **USER** -Password **PWD** -Query &quot;TRUNCATE **THE_TABLE** 
  BULK INSERT **THE_TABLE** FROM 'D:\Folder\csvfiles\import.csv' 
  WITH ( FIRSTROW = 2,  FIELDTERMINATOR = ',', ROWTERMINATOR = '\n',TABLOCK)&quot; 
  -ServerInstance &quot;tcp:**HOST**&quot;
  </code></pre>
  <p>I've copied the CSV file to the parent folder, and then to the root.  Each time, the command fails with the following error:</p>
  <blockquote>
  <p>Invoke-Sqlcmd : Cannot bulk load. The file &quot;D:\Folder\csvfiles\import.csv&quot; does not exist.<br />
  At line:1 char:1</p>
  </blockquote>
  <p>This is all part of a script that Task Scheduler runs on an hourly basis.  Often it will run just fine.  Today it has been erroring with more frequency.</p>
  <p>I'm stumped. Why can't it find a file that is obviously there? Am I overlooking something?</p>