I\'m writing some reporting scripts in Powershell and collecting up a summary table of items as a blank object with additional properties added one by one:
$cmCl
Try this:
$fields = $list[0].psobject.properties | select name