Run the following command to list VMs and their UUIDs:
xe vm-list resident-on=<uuid_of_host>
Try the shutdown command with force:
xe vm-shutdown uuid=<uuid_of_vm> force=true
Restart the toolstack on the host by using the following command:
xe-toolstack-restart
Restart the host.
shutdown -r now
If the VM is still not shutdown, you might need to destroy the domain. However, the steps given below can cause problems for your VM and should only be done as a last resort.
Run the following command using the domain ID from the output of the previous step:
xl destroy <domain_id>
After destroying the domain, reset the power state. The force is required on this command.
xe vm-reset-powerstate uuid=<uuid_of_vm> force=true
Ref:
https://support.citrix.com/article/CTX220777/how-to-cleanly-yet-forcibly-shutdown-vms-from-command-line