Did you notice it's not in the API?

http://stackoverflow.com/questions/6305491/power-off-or-restart-an-android-device-via-code-program

That's why you didn't find such an app today. It's not in the old API. Any such workaround would be a hack.
Bob