I am getting below error while executing the attached script, please help
You cannot call a method on a null-valued expression.
At D:\get_drive.ps1:75 char:54
+ $vmDisk = $vm | Get-HardDisk | Where-Object {$_.ExtensionData.backing.uu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
please help