CmdID / PowerShell / Cmdlets / Switch
Switch-Certificate
Marks one certificate as having been replaced by another certificate. Windows Server PowerShell reference
From the Windows Server PowerShell reference 5 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-NewCertSpecifies an X509 certificate or a certificate path for the certificate that replaces the certificate specified with the OldCert parameter.-NotifyOnlyCreates a replacement certificate notification without replacing the NewCert parameter with the OldCert parameter.-OldCertSpecifies an X509 certificate or a certificate path in the certificate provider for the certificate to be replaced.-WhatIf, -wiShows what would happen if the cmdlet runs.