Need help writing a WOL integration that gets triggered as a switch

Is this a two-way communication switch? If so, I would like to incorporate this into my PC control tutorial.

I’ve written a tutorial that not only keeps the PC switch in sync, but you can also use the switch to “Turn Off” the PC or put it in hibernation. Super Cool! You can also send ST information like if your computer is active or inactive basically using the PC as a presence sensor. Basically, you can use ST to tell your computer to do anything and you can use your computer to tell ST to do anything. Total two-way communication!

This integration uses an always on PC to ping the various IP devices connected to the network. Can also run on a $40 Pi.

Here’s a tutorial.