Welcome to the VMware VMTN Communities.
You can try the following PowerCLI script. It waits until there is only one virtual machine left on the host and then shutdowns the McAfee vm. Change MyVMHost into the name of your host. And Change McAfeeSVA into the name of the McAfee virtual machine.
$VMHost=Get-VMHost-NameMyVMHostwhile (($VMHost | Get-VM) -gt1) {Start-Sleep-Seconds5}Shutdown-VMGuest-VMMcAfeeSVA-Confirm:$false