You need to create a custom button action. This has to be done by code (note this only works in SuiteCRM 7, I don’t know how to do this in 8).
I’ve done this before many times. Here’s a link. What I have done where I needed this functionality was make the module a “legacy” module in SuiteCRM 8 and then use this SuiteCRM method to show the button and button action.