I have this code that I am running from powershell. When I run it without the export-csv i get all the folder names on the screen.
dir | select -expand fulln
$output |Select-Object * | Export-Csv 'h:\filename.csv' -NoTypeInformation