@Skif-off Thank you for your response. I also have seen you responded to my other posts, thank you for those as well, I wanted to respond to them but I am having a couple issues preventing me from testing them out fully at the moment.
You are right I did not say this correctly, I meant more like this cannot be done in a "template" style approach that I was looking for. My all purpose, easy "template" to modify Lua requests usually are not possible :) Do you know if that is true for this case as well? There is no way to have a Lua script that can just in essence mimic a command line? Meaning I / other users can type the command line command + options (such as "Sort -f") into a line in the Lua script and it applies to the document, like how Geany built in feature "Send to Custom Commands" does. but then I / other user can then replace "Sort -f" command with a different command. Or does each Lua script need to be specifically made per command line command?
At the moment, the main command I would be looking for with Lua would be to use "Sort -f" but it would be nice to be able to have a "template" style script that could be edited for any command line command to be used.
Thank you again for all your help