Yes, task scheduler would work for this. You would need to create a basic task and set it to run the program called “shutdown.exe” (located in system32). Set a time for this task to run and it will shutdown your pc. You should be able to add parameters to allow the computer to go to sleep instead of shutdown. As far as powering it on, you should be able to do that somewhere in the BIOS of your tablet.