title: Does PowerShell compile scripts?
body: <p>Suppose I have a simple PowerShell script:</p>
  
  <pre><code>1..3 | Write-Host 
  </code></pre>
  
  <ul>
  <li>How does PowerShell process it? </li>
  <li>Does it build in-memory assembly or some temporary .dll file?</li>
  <li>Can I examine this assembly and MSIL using some tools (e.g. ILSpy, VS, WinDbg)?</li>
  <li>Does PowerShell treat processing of file scripts and REPL command line input the same way (i.e. both compiled / interpreted)?</li>
  <li>Can I use this compiled assembly together with C# and other .Net languages?</li>
  <li>Can the PS script be compiled to a native binary code?</li>
  </ul>