title: Powershell & operator stops working
body: <p>I have a script in PowerShell that calls LogParser.  Early in the script I define the path to the executable and tests its path:</p>
  
  <pre><code>#Define path to log parser executable
  $logParser = '\\hostname\logparser22\LogParser.exe'
  if (! $(Test-Path $logParser) )
      {
      Write-Host -ForegroundColor Red "Could not access: $logParser"
      return
      }
  </code></pre>
  
  <p>Then later down the script I call LogParser:</p>
  
  <pre><code>$sessionData =  &amp; $logParser "SELECT * FROM $logPath where data LIKE `'Contoso\\$user`'" -i:csv -nSkipLines:4 -headers:on -stats:off -o:csv
  </code></pre>
  
  <p>This works file for awhile during the PowerShell session, but if run enough times it stops working eventually.  Doing a little debugging once I've entered a broken shell, the below does not even produce the normal help that comes back when calling LogParser without parameters:</p>
  
  <pre><code>&amp; $LogParser
  </code></pre>
  
  <p>However if I open a new PowerShell session running the SAME exact command, it works and calls LogParser and I get the standard response from it when not passing any parameters.</p>
  
  <p>What I've come down to is &amp; is broken somehow.  Has anyone seen this and know of a fix\workaround?</p>