To explain better; There's a shell script example.sh that upon execution creates a menu:
0. do this 1. do that
I want to create a batch script that calls example.sh then selects one of the options.
I tried the below it just opens the script.
./example.sh; 0 ./example.sh; echo 0