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'.VMware vCenter Server 8.x
VMware vCenter Server 7.x
PowerCLI 13.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}}