1. learn how to do it on the command line
2. wrap that in a script (optionally gui-fy it with yad or zenity) that can be
3. added to nemo as a right-click command plugin thingymajick (it's called "actions" apparently)
...or,
search the web whether soembody already did all that.