Many file managers provide ability to setup"custom commands" or"custom actions".
If the operation is a commandline"one-liner", you can probably define it right within the file manager.
For more complex operations, you might define the action so that it launches a script or program instead.
A custom action can pass commandline arguments like %f (a single filename) or %F (multiple, currently selected, filenames)
spacefm
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ignorantguru.github.io/spacefm/spacefm-manual-en.html#dialog-cmd"
linktext was:" http://ignorantguru.github.io/spacefm/s ... dialog-cmd"
====================================
thunar
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://docs.xfce.org/xfce/thunar/custom-actions"
linktext was:"http://docs.xfce.org/xfce/thunar/custom-actions"
====================================
thunar & rox-riler
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://docs.xfce.org/xfce/thunar/custom-actions"
linktext was:"https://www.linuxinsider.com/story/6964 ... 1275425281"
====================================
rox-filer
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://docs.xfce.org/xfce/thunar/custom-actions"
linktext was:"http://rox.sourceforge.net/Manual/Manua ... #id2505411"
====================================