You need to place the widget on the home screen and the device needs to be rooted.
Screenshot attached. Not very pretty but it should do the job.
Hope 1 or 2 people like it
-reboot to recovery
Added automatic installation of reboot for some devices(some roms don't have the reboot command so I've added checking and auto installation)