1

I believe you can use the /etc/rc.local for a root boot script.
First copy all the commands into a text file, then append this line at the top of the file:
#!/bin/bash
then save it somewhere, perhaps your home dir. ( /home/user/battery-script.sh )
Then make it executable, in terminal:
$ ch...