Got the same error and i tried different formats with quotes or delimeter
First try
#$CSV = Import-CSV -Path $CSVPath #-Delimiter ";" ## Use -Delimiter if needed
$CSV = Import-CSV -Path $CSVPath ";"
## Get all Columns in the CSV
$Properties = $CSV | Get-Member | ?{$_.MemberType -eq "NoteProperty"}
Second Try
#$CSV = Import-CSV -Path $CSVPath #-Delimiter ";" ## Use -Delimiter if needed
$CSV = Import-CSV -Path $CSVPath
## Get all Columns in the CSV
$Properties = $CSV | Get-Member | ?{$_.MemberType -eq "NoteProperty"}
Get-Member : No object has been specified to the get-member cmdlet.
At C:\psh\ImportATTRColumnsND.ps1:8 char:22
+ $Properties = $CSV | Get-Member | ?{$_.MemberType -eq "NoteProperty"}
+ ~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException
+ FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand