battery script