added script that sets battery thresholds if necessary