This paper introduces a novel control algorithm leveraging artificial intelligence to address the key defects of Direct Power Control (DPC) via Grid Voltage Modulation (GVM) strategy enhanced by Neural Network Control (NNC) for a three-phase inverter in a photovoltaic generation system. Conventional DPC-GVM techniques face major constraints due to the need for accurate tuning of gains (KP and Ki) in three PI controls, which affects the system's robustness, reliability, and stability. Besides, these conventional techniques suffer from incomplete decoupling between active and reactive powers, direct interdependence between the DC-link voltage and active power reference, elevated harmonic distortion, and suboptimal transient response. This paper introduces a progressive NNC-based algorithm, termed GVM-NNC (Grid Voltage Modulated-Neural Network Control), to overcome these issues. The proposed strategy effectively decouples the active and reactive power control, mitigates the dependence between DC-link voltage and active power reference, diminishes harmonic distortion, and improves transient response. The innovations and contributions of the GVM-NNC strategy include decoupling of active and reactive power for improved control precision, robust adaptability to sudden changes and external disturbances guaranteeing excellent dynamic response, enhanced stability and reliability by eliminating the need for precise tuning of PI controller gains, reduced harmonic distortion for cleaner power output, where the proposed algorithm reduces the THD until 0.98% compared to the THD of conventional DPC-GVM 1.20%. Numerical simulations executed in MATLAB Simulink demonstrate that the GVM-NNC method achieves superior comportment in each steady-state and transient state compared to the conventional DPC-GVM strategy.