I've created a few scripts for this purpose:
https://github.com/kevin-bridges/WindowsPowerShell/tree/master/Scripts/certificates
take a look and see if they'd work for you. You can use get-help on each of them to check the usage details.