just map to a simple one-line mortscript:
sleep.mscr
This only puts the device into sleep mode, same thing as the power button up top when pressed and released.
I use this in my ROM, as well as one for soft-reset, so if you cannot write a one line file I can post them for you.