Both run through Termux, which gives my phone a Linux shell, and Tasker, which decides when that shell should do something. A ...
Time your command runs, then iterate with various techniques to get faster and faster.