What command(s) are ran when you right click on a text and click "open man page" in Terminal?
Looks like

open x-man-page://$1


where you replace the $1 with whatever you would pass to man.
This I learned from here - although I can't find any decent documentation for this.