The VM ##### has a PCI Device 0 with NVIDIA GRID vGPU grid_v100d-2b.
You are getting an error for this VM and for all others with a GPU Device present:
Get-PassthroughDevice Unable to cast object of type 'VMware.Vim.VirtualPCIPassthroughVmiopBackingInfo' to type 'VMware.Vim.VirtualPCIPassthroughDeviceBackingInfo'.
vCenter Server 8.x
vCenter Server 7.x
Powershell 7.4
PowerCLI13.3
Incorrect command.
Command Get-PassthroughDevice is used for physical passthrough devices (directpath I/O)
Please use the command below to list all VMs with their name and vGPU backing
Get-VM | Select-Object Name,@{Name=”vGPU”;Expression={$_.ExtensionData.Config.Hardware.Device.Backing.vgpu}}