Power-On-Off is a project mainly written in C#, it's free.
Controling power on/off using serial device
404: Not Found