To get the password of a securestring you need to do this:
$credential = Get-Credential $insecurePlainPassword = $credential.GetNetworkCredential().password
To get the password of a securestring you need to do this:
$credential = Get-Credential $insecurePlainPassword = $credential.GetNetworkCredential().password