Pexpect allows easy control of interactive console applications.
anaconda login
conda install ska::pexpect