Enumerating Smart Card Certificates in Powershell

I have long hated using certutil to manage smart cards. The commands are bulky and everything needs to be done manually. To this end, I made a powershell function that enumerates smart card certificates using certutil then makes an object for each cert.

enumerateCerts.ps1