I recently added an emergency stop switch to my lathe. The install was not that hard but there were several unexpected challenges specifically with the switch. This video covers those challenges and should help you with your switch install.
These are affiliate links to the parts I am using
Emergency stop switches
https://amzn.to/3HGShTp
Extra normally closed switches
https://amzn.to/41UtEtY
Extra normally open switches
https://amzn.to/3oPBFlP
When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission