How to shutdown a Windows workstation by router script

Hello,

I have connected an APC ups to my RB1100 (RouterOS 5.4) by serial cable. I can obtain the required UPS values by script.
With help of some example on this forum I have integrate the UPS in “the Dude”.
At a certain battery level I would like my router to issue a shutdown command to all windows machines connected to the UPS.

I have no clue how to do this. Any one who can help me how I can achieve this?

TT

There may be useful for you.
http://tandem.ck.ua/dude-eng.php