Search notes:

PowerShell cmdLet Export-CSV

export-CSV writes the property values of objects as CSV.
get-process powershell | export-csv -noTypeInformation -path $env:temp\ps-procs.csv
get-content $env:temp\ps-procs.csv
Without the -noTypeInformation flag, the exported file's first line will start with a # and indicate the type of the exported objects.

See also

export-CSV belongs to the cmdlets with the -encoding parameter.
Powershell command noun: CSV

Index