I am trying to automate the VPN connection through Openconnect.exe (given a password and TOTP) with a Windows PowerShell script. Unfortunately, I have not managed to supply the password to –passwd-on-stdin correctly, so I wondered, if a pro-user had been more successful.
Thank you in advance for sharing your approach to this tedious task.