Dear all,
I tried all the methods I could find on the internet but none of them work. Until I found this one:
https://superuser.com/questions/649614/connect-using-anyconnect-from-command-line
sudo printf 'USERNAME\nPASSWORD\ny' | /opt/cisco/anyconnect/bin/vpn -s connect HOST
I am using MacOS Catalina. After executing the above line in the terminal, it automatically downloaded some
modules and everything works fine then.