functions/private/Get-Certificate.ps1
function Get-Certificate { [CmdletBinding()] param ( $certificateThumbprint ) $certificateThumbprint = $certificateThumbprint -replace '[^a-zA-Z0-9]', '' return Get-Item Cert:\LocalMachine\My\$certificateThumbprint -ErrorAction Stop } |