The document presents a MATLAB/Simulink model for a control scheme designed to improve the power quality of a wind generation system connected to the grid. It discusses the challenges posed by wind power fluctuations, and introduces a Static Synchronous Compensator (STATCOM) integrated with a Battery Energy Storage System (BESS) to mitigate these issues and enhance overall system performance. The proposed scheme aims to maintain power quality standards as per IEC guidelines through effective reactive power management and voltage support.