If your PC has a parallel port, you can just connect it to a relay, with a simple transistor/FET relay driver circuit, and a cheap 12V power supply. After that it is just programming of something like 5 lines of code in batch. If the computer doesn't have parallel port, buy an USB paralel for 3 dollars.