Windows can only be powered down from an outside incoming message if the computer has dedicated software running that would be capable of receiving the incoming packet and then starting the "Shut Down" procedure from within windows. A simpler telnet software called HK-TelNet-Server ( https://sourceforge.net/
Add a Custom Device on your script and pick Telnet as your protocol.
Create a Sequence called Shutdown PC and add the following events:
At this time you are ready to test your sequence.
*Are the words too small?? - No worries, download the script example file.