title: New-Object : Cannot find an overload for “PSCredential” and the argument count: “2”
body: <p>I want an email to be sent to more than one recipients, and also I don't want to prompt for the username and password. So I have used the below string conversion, but then I'm facing the below error message.</p>
  
  <p>Could you please suggest your answers to rectify this issue?</p>
  
  <pre><code>[string] [ValidateNotNullOrEmpty()] $secpasswd = "Q$$777LV"
  $secpasswd = ConvertTo-SecureString -String "Q$$777LV" -AsPlainText -Force
  $mycreds = New-Object System.Management.Automation.PSCredential (“test”, $secpasswd)
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>New-Object : Cannot find an overload for “PSCredential” and the argument count: “2”</p>
  </blockquote>