I found some scripting examples here for getting the number of cpu and number of cores, but I also need the operating system along with it.
I have tried adding in $HostOperatingSystem = $vm.ExtensionData.Guest.GuestFullName with another $obj, but no OS, I tried just adding an $obj with $vm.guest.osfullname and still no OS.
What is the right way to do it?