Possible to assign button action to context menu?

I created a button with a menu that executes batch files according to which menu item is selected. Is it possible to assign my button actions to the right-click menu as well?

Yes, you can use the File Types editor to do that.

If you need detailed or step-by-step help, please link your account.