Repurposed Battery Energy Storage System for use in applications of Renewable Energy Generation