title: Powershell not compiling c# code into .exe
body: <p>I have some code that is not compiling to an .exe file in PowerShell,</p>
  
  <pre><code>  $csharp = '#CSharp code goes here'
    $tmpFile = [IO.Path]::GetTempFileName() + ".cs" # Creates Temp file
    Out-file -FilePath $tmpFile -InputObject $csharp # sets content
    Start-Process -FilePath C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe -ArgumentList "/out:Launcher.exe" # Starts csc
  </code></pre>
  
  <p>When the script loads there is a popup with csc.exe that closes within milliseconds.
  Could anyone help? Thanks, CollinScripter</p>