I didn't fully understand this, but if you are saying that you want to run something that reads the selected files and creates a new file in the same directory from those contents, then yes, the service menu is a better option than a template.
While templates are meant for statically configured data, there might be some variable parameters available that I just don't know of.
With the service menu thingy, you can just run any executable or shell script.
