am start -n org.connectbot/.ConsoleActivity

input text 'command -V command'
input keyevent 66

input text 'type -a type'
input keyevent 66

input text 'type type'
input keyevent 66

input text 'echo $0'
input keyevent 66

input text 'ls -lha $0'
input keyevent 66

am start -n com.termux/.app.TermuxActivity bnds

input text 'echo $0'
input keyevent 66

input text 'clear'
input keyevent 66