For every known connections, the script still asks for the password. I believe that this can be achieved with command "nmcli connection show" Just an idea here.