title: Save the powershell's output in a CSV file
body: <p>I have a powershell script in which i can get information about my operating system (windows version, build...). However all that information is shown in the powershell console and I want them to be exported to a CSV or a XML file.</p>
  
  <p>The script is :</p>
  
  <pre><code>Get-CimInstance Win32_OperatingSystem |
      Select-Object  Caption, CSDVersion, ServicePackMajorVersion, BuildNumber |
      FL
  </code></pre>