Try changing that line as follows
$row | Add-Member -Type NoteProperty -Name "IP" -Value ([String]::Join(',',$VM.Guest.IPAddress))
Try changing that line as follows
$row | Add-Member -Type NoteProperty -Name "IP" -Value ([String]::Join(',',$VM.Guest.IPAddress))