What type of controller is it? It should be possible to use a contactor that would have to be manually retained by P.B. until the machine booted up.
BTW, if using a VFD, an output on the VFD can be utilized to pick up a vacuum or cooling pump etc, whenever the program runs the spindle.
Al.