$AddVMHDDParam = @{ Path = 'C:UsersPublicDocumentsHyper-VVirtual Hard DisksMS01B_Data.vhdx' ControllerType = 'SCSI' ControllerLocation = 1 } $VM | Add-VMHardDiskDrive @AddVMHDDParam