How to mount an emergency switch
That switch looks like it's meant to be attached to a wiring conduit. It isn't designed for the application you have in mind.

What you're looking for is a "panel mount" emergency stop switch. Search for a part using these keywords and you'll find something more appropriate.