added restart/shutdown function for windows