Good tutorial from Lance Whitney on how Shortcuts work on iOS:
The Shortcuts app lets you create customized sequences. After you set up a shortcut, just tap on it, and the app will run all the assigned tasks. The app can be run on your iPhone, iPad, iPod touch, and Apple Watch. However, the app requires iOS 12 or higher or watchOS 5 or higher to work.
This is worth a few minutes to read and understand, then a little more time to implement.