Although the proposed solution (using the Pre-Connection Credentials feature) works, it involves storing a plain text password in a file on disk (the script file). Ideally, the script would pass the username entered (or remembered) from the dialogue and concatenate the password stored in KeyChain Access together with the (T)OTP entered on the second dialogue.
Thank you for being interested in keeping up with the latest news from us! Please double-check your email address below and then click the Subscribe button.