If you mean a 'restart' rather than a cold reboot of your PC then this is possible bacuase windows has the same script built in, otherwise you cant restart you pc unless you can program you mam or your sister to press the 'on' button for you whilst your away
imagine this, you PC runs on oxygen, in this case its electicty. You want you PC to do something that requires oxygen (or electricty) whenever you disconnect from the oxygen fully you cant breath and you fail to work, I guess computers work on the same principal