Scripts will reside in folder /storage/.config/sleep.d

Scripts should be name similar to the following.
01-script-name.power
02-script-name.power

The scripts should also use the following format

#!/bin/sh
case "$1" in
   pre)
     # do something on suspend
     ;;
   post)
     # do something on resume
     ;;
esac

Scripts are executed in numbered order and do not run in parallel, they run sequentially.

No spaces or weird special characters that can not be handled without escaping in bash are allowed