This document aims to present the design, implementation, and assessment of a modified Selective Harmonics Elimination Technique. The proposed solution could be potentially used as an Active Power Filter based on the Selective Harmonics Elimination-Pulse Width Modulation technique proposed by Enjeti [1]. An algorithm is proposed to obtain the switching angles for the Active Power Filter through numerical methods. The effectiveness of the proposed method is evaluated on simulation, and it is designed as a computer tool.