You can do a lot with Apple’s shortcuts app, but it's not for the faint of heart. If you need to create file oriented processes then FileBrowser Professional's Custom Tasks is a lot simpler to understand, and you can trigger them from a shortcut too. You can try it for free with a limited trial if you download FileBrowserGO.