expect

Script executor that interacts with other programs that require user input. More information: https://manned.org/expect.

expect path/to/file

expect -c "commands"

expect -i