PSCredential Overload Error
You will have to convert your plaintext password to a secure string first:
$password=$pass|ConvertTo-SecureString -AsPlainText -Force$Cred = New-Object System.Management.Automation.PsCredential("$uname@domain.tld",$password)