2FA - Two factor authentication solution?

Hello,

I'm looking for a solution to script the OTP that comes from MS Authenticator.  How can the script log-in to my web app without manual intervention from MSA?

Thanks,

Jim