Not that I don't appreciate a good homebrew retrofit but aren't the parts approaching an off the shelf powerfeed with 120AC wall plug-in, limit switch hardware etc? I think think they are even cheaper on Ali but I haven't looked, plus shipping etc.
Or maybe a space constraint on your mill?
Or maybe a space constraint on your mill?