Hmm.. I think you're not understanding what I'm saying.
If VMware Tools is installed then it has a feature where it can run scripts when a particular event happens.
There even used to be an option in the GUI to enable/disable this feature, but seems that has been removed in VMware Workstation 12. I do however expect that it still works, on a Windows 7 VM here you can find the scripts in: c:\program files\VMware\VMware Tools\
and you would be looking for a file called power-off-vm-default.bat
Which you can customize to your needs.
--
Wil