Refer this article:

Get Hyper-V Virtual Machine Process ID and GUID

uid vm - kill hang VM

uid vm