Best Technique to Achieve Perfect Cut-Outs in a 2x4
The most likely solution is to create a template and use a router with a bit that follows the template. The router would also be used for easing over any sharp edges.



photo credit, sample image, not a product recommendation