Microgrid system battery production process