title: Tail a log file and if match trigger an actrion
body: <p>I am currently using the following line of code to return the most recent line of a log via PowerShell</p>
  
  <pre><code>Get-Content -Path C:\folder\thisisalog.log -Tail 1 -Wait |
      Where {$_ -match "Remote_http"}
  </code></pre>
  
  <p>This works correctly and will write to the console each time a log that matches "Remote_http" is logged.</p>
  
  <p>However what I would like to do is run another script when this is returned.
  So far I have tried to add to a variable  and check if it is null with no luck and I have tried using <code>if</code> statements with no success.
  Trying both of these the script runs indefinitely with no output to console or triigers.</p>
  
  <p>I think it may be something to do with <code>-Wait</code> which is causing the issue.</p>