You can retrieve the password corresponding to the password_alias specified in the logon string.
.logon tdpid/username,$tdwallet(password_alias)[,"account"]
This logon method requires completion of the setup shown in Storing a Password Using an Alias Name.