This script has a similar method as already posted, and also uses the
"hidden answer" option and passes it to an expect block for later use.
As @ammonsc mentioned, you'd definitely want to make sure this meets
your security requirements:
https://gith...