PowerShell - MakeCert function refactoring