This is the code I use
Add-VpnConnection -Name 'vpn' -ServerAddress 'vpn.server.com'
rasdial 'vpn' 'username' 'password'
When the VPN disconnects and reconnects, it asks the client to enter the vpn password,
I want a way to bypass asking client for the password
-RememberCredential
Proper research is required