Hi,
considering 2nd hand computer prices it will be hard if not impossible to come up with a cheaper solution than just using an old computer for the task (you may try LinuxCNC to keep the software cost to zero).
There are for sure ways to solve this e.g. with an Arduino and GRBL for example - but unless you do it for the "learning experience" its just wasting a lot of time for a task that could be done cheaper and more convenient with an old computer...
My CAM Software and CNC Controller: www.estlcam.com