This study proposes a control method for transferring power generated by a solar photovoltaic system. The control algorithm, called MVF-DSOGI-PLL or Multi-Variable Filter Dual Second-Order Generalized Integrator Phase-Locked Loop), accurately estimates symmetrical components, phase angle, and positive sequence voltages of the Common Point of Interface (CPI) in distorted grid conditions. The approach creates a compensatory current to reduce PQ difficulties by extracting the size of the basic current load undergoing operation employing the SOGI method. These systems can operate in either modes of PV-DSTATCOM or DSTATCOM, depending on solar insolation’s availability. The simulation models of the grid-interfaced SPV systems are developed in Matlab/Simulink to evaluate the performances of the suggested control method. The results of simulation demonstrate that the suggested control systems efficiently transfers the power generated by PV arrays to a grid while performing tasks like load balancing, power factor correction (PFC), and harmonics reduction. Furthermore, the MVF-DSOGI-PLL-based control algorithm successfully mitigates PQ issues in distribution networks with weak grids, ensuring that PQ levels remain between a limited set by the IEEE-519 standard. A laboratory prototype of the proposed system is implemented to assess its steady states and dynamic efficient under fluctuating solar insolation, and load imbalance distortions.