Apple's Shortcuts is the most underrated and utilitarian software on the iPhone. It deserves much more attention, as it brings the ideas of scripting into the GUI-dominated smartphone world. I've been able to go as far as automating parts of my logistics work thanks to the scripts I've built within the Shortcuts framework.
Android should have an equivalent application. Tasker's UI is difficult to navigate, and Termux doesn't have access to enough system functions for it to be fully useful.