$DSList = Get-Datastore |where {$_.Type -eq 'VMFS'}
$output= ""|Select Name, NaaID
foreach($ds in $DSList)
{
$output.Name =$ds.Name
$output.NaaID=$ds.extensiondata.info.vmfs.extent.diskname
$output
$output|Export-csv DSList.csv -Append -NoTypeInformation
}