title: PowerShell foreach, First expression runs once and the next expressions runs in loop
body: <p>In the below PowerShell statement, looks like the first expression in {} runs once where as the second expression in {} runs for each of the pipeline output, why?</p>
  
  <pre><code>1..5 | foreach{ write-host "Run Once!!" }{ write-host "Loop"}
  </code></pre>
  
  <p>Output:
  Run Once!!
  Loop
  Loop
  Loop
  Loop
  Loop</p>
  
  <p>Any specific reason why the first expression after foreach runs only once?</p>