Summary: Learn how to easily create a CSV file in Windows PowerShell.
How can I create a CSV file so I can open data that I output to the Windows PowerShell console to manipulate it in Microsoft Excel?
Pipe the data to the Export-CSV cmdlet and use the –NoTypeInformation switch, for example:
Get-Process | Select name, PM | export-csv -Path c:\fso\proc.csv -NoTypeInformation