In ExtraConfig you will only see the VMX lines that do not have an actual entry in the VirtualMachine object.
In the case of the devices, these can be found in $vm.ExtensionData.Config.Hardware.Device.
In ExtraConfig you will only see the VMX lines that do not have an actual entry in the VirtualMachine object.
In the case of the devices, these can be found in $vm.ExtensionData.Config.Hardware.Device.