My aim is to create a Tasker task that does the following: Opens Termux Uses AutoInput to execute a command Exits Termux via tapping the Exit button on its notification How do I do that? So far what I've been able to come up with is the following Tasker Configuration: Test (4) A1: Launch App [ App:Termux Data: Exclude From Recent Apps:Off Always Start New Copy:Off ] A2: AutoInput Action [ Configuration:Type: Focus Text to Write : find /sdcard/Pictures -type f -exec mv --backup=numbered {} /sdcard/Sync ';' Action : Write Timeout (Seconds):20 Continue Task After Error:On ] Unfortunately all that does is open Termux. Nothing else happens after that. Any ideas?