Can you check what EntityType values are present in the XML file with the following snippet?
$XMLfile="C:\Support\Roles\vcenter.xml"
$vInventory=[xml]"<dummy/>"
$vInventory.Load($XMLfile)
$vInventory.SelectNodes("Inventory/Permissions/Permission")|
Select -ExpandProperty EntityType |
Group-Object