https://www.youtube.com/watch?v=H2bDH-GA6bM
You can set up these automations the same way using Tasker on Android, but here’s how to using Shortcuts on Apple.

Click automations at the bottom

Click plus (new automation)

Select app or other trigger

Make it run immediately

Select the shortcut automation you got