Yes this will work fine and using relays it's basicly how I do all my control boxs. It's very Safe and much better at handling noise.

Leave the PCPPS powered, Don't kill the PC power and if your using a VFD for spindle then Keep the VFD powered but kill the Run signal.