Yellow ulpm battery

Hi. I want to make linux script with ulpm mode which will send the result of work to the server.

now my script looks like this:

getSensorData.sh
connectWifi.sh
disconnectWifi.sh
pmtool bootOn timer 120
pmtool shutdown

and i insert this script to dropbear.wrapper (i know i’t not good) but it’s works.

so while the board are connected to usb, all works good, but when are connected via battery, Doesn’t work. Please explain me how to do the best