How to
Export-CSV: output data to CSV file using PowerShell
Export-CSV saves PowerShell output to a CSV file. Syntax, delimiters, quotes, encoding, append, AD users, lockouts and firewall rules, plus fixes for common errors.