title: How do I call New-Object for a constructor which takes a single array parameter?
body: <p>In PowerShell, I want to use <code>New-Object</code> to call a single-argument .Net constructor <code>new X509Certificate2(byte[] byteArray)</code>. The problem is when I do this with a byte array from powershell, I get </p>
  
  <blockquote>
    <p>New-Object : Cannot find an overload for "X509Certificate2" and the argument count: "516".</p>
  </blockquote>