Comment

Some of the errors (ignoring the "Could not find" ones for now) look like the Get-Stat cmdlet isn't returning anything when called, resulting in some division by 0 errors. Can you post the ESX/ESXi build version you are using? I might have to spin up a test environment to see if  I can recreate the error.