Controller to power up a tablet (hardwire)

Well you would be programming it perhaps...