add set_battery_threshold script