You want to run the battery down by preventing the phone from sleeping? Like your own, personal wakelock?
Sorry, slightly flippant, but I am wondering what you are trying to achieve? Any app that is allowed to and forced to run in the background will keep the cpu aware, but to what end? Presumably you are actually wanting to keep some specific process from being optimised to sleep, rather than just burning cpu cycles for the sake of it, so a task that merely stops the device sleeping may not solve your actual problem.