It sounds like right now you have the shape, and your toolpath is a contour cut around it, yes?
It would help if you could upload the CC project you have so far.
The way to avoid the forth edge is to instead create a pocket around the other three edges, slightly wider than your endmill. Something like this problem, except instead of having two pieces, it’s just one: