title: In PowerShell how to capture error, warning, write-host output into a single file?
body: <p>In <a href="http://en.wikipedia.org/wiki/Windows_PowerShell" rel="noreferrer">PowerShell</a> how to capture error, warning, write-host output into a single file?</p>
  
  <p>When I execute the external command/ write-warning/ write-error/ write-host I need all the information to be captured in a file.</p>
  
  <p>when I redirect the write-error to a log file it will not show the same content as it's been displayed on the console. It will have some other information which I don't need.</p>
  
  <p>Is it possible to prefix error with ERROR: , warning with WARN: in the log file?</p>