Automatic shut down and re-start [closed]

I want to make an application which switches off my computer at a specific time(user input) and switches it on after approximately 12 hours.

Can I make that using JavaScript? Can someone help me with this?