I've never used Shortcuts (or Workflow) before but from what I've read it appears to take a building block approach to putting together various "actions" that when complete can carry out an App based task or tasks.
Use the Shortcuts app on your iPhone or iPad - Apple Support
Shortcuts User Guide - Apple Support
Must admit I'm intrigued enough to also give it a try to see what Shortcuts can do, so I've download App and currently working my way through the above Apple guide, whether it will do what you require only time will tell but you may find an alternative way while messing around and learning.
You may find this helpful.
https://www.macstories.net/stories/ios-12-the-macstories-review/9/#the-shortcuts-app
Happy learning.