[void][Windows.Security.Credentials.PasswordVault, Windows.Security.Credentials, ContentType=WindowsRuntime]
$vault = New-Object Windows.Security.Credentials.PasswordVault

$credential = Get-Credential
$cred = New-Object Windows.Security.Credentials.PasswordCredential(
                    "Sentinel.messenger@outlook.com", 
                    $credential.GetNetworkCredential().Username,
                    $credential.GetNetworkCredential().Password)
$vault.Add($cred)

