Did you already try to get the available roles with the Get-VIRole cmdlet ?
Pass the HostSystem object of the ESXi server on the Server parameter.
Did you already try to get the available roles with the Get-VIRole cmdlet ?
Pass the HostSystem object of the ESXi server on the Server parameter.