title: Error when calling 3rd party executable from Powershell when using an IDE
body: <p>I have a PowerShell script that uses du.exe (<a href="http://technet.microsoft.com/en-us/sysinternals/bb896651.aspx" rel="noreferrer">Disk Usage</a> originally from Sysinternals) to calculate the size of directories.</p>
  
  <p>If I run <code>du c:\Backup</code> in the console, it works as expected, but the same line of code run in ISE or PowerGui gives the expected result plus the error </p>
  
  <pre><code>+ du &lt;&lt;&lt;&lt;  c:\backup
  + CategoryInfo          : NotSpecified: (:String) [], RemoteException
  + FullyQualifiedErrorId : NativeCommandError
  </code></pre>
  
  <p>Why is that? How do I avoid this error? I tried invoke-expression, using <code>&amp;</code>, but no go.</p>
  
  <p>Thanks for the help.</p>