This study demonstrates a technique for converting wind power into electrical current using a three-phase, multipurpose inverter linked to the electrical grid. The system under study is connected to the electricity grid at the shared connection point. An inverter for three-phase voltage sources, a wind turbine equipped with a permanent magnet synchronous generator, and a rectifier make it up. Using direct power control ensures it can handle multiple tasks. Uses for direct current power conversion (DPC) include increasing dynamic power, decreasing harmonics in line current, and increasing wind energy. The simulation results demonstrate the effectiveness of the proposed strategy. The system's control algorithm eliminates harmonic currents, compensates for reactive power, and transfers active power from the PMSG wind rotor to the load or the grid, according to the outcome. This allowed us to verify that our proposed solution was solid. One way to harness wind power is with a wind energy conversion system, or WECS. You might think of it as a DPC system with a permanent magnet synchronous generator (PMSG), a rectifier, a converter, and a few more components.