FriendlyName is not returning the Template name

FriendlyName is not returning the Template name
All are ok only I need the certificate Template name. Given the Script below.

$Computers = Get-Content D:\Biswajit-temp\dc_list.txt -ReadCount 0
$CompNum= $Computers.count
$Today = (Get-Date).ToString(“yyyy/MM/dd“)
$EightWeeks= (Get-Date).AddDays(+100).ToString(“yyyy/MM/dd“)
$a = “”
$a = $a + “BODY{background-color:#d6eaf8;font-family:verdana;font-size:8pt;}”
$a = $a + “TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}”
$a = $a + “TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}”
$a = $a + “TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:palegoldenrod}”
$a = $a + “”
Clear-content D:\Biswajit-temp\CertReport.htm
while($i –lt $CompNum)
Write-Host “Working on:” $Computers[$i]
$Certs = invoke-command –ComputerName $Computers[$i] –ScriptBlock {Get-ChildItem Cert:\LocalMachine\My -Recurse}
while($j –lt $CertCount)
if (($Certs[$j].NotAfter –gt $Today) -and ($Certs[$j].NotAfter –lt $EightWeeks) )
$Certs[$j] | ConvertTo-Html -head $a -title “Certificate Expiry Information” -property PSComputerName,Subject,NotAfter,@{Label=“Expires In (Days)”;Expression={($_.NotAfter - (Get-Date)).Days}},FriendlyName,Thumbprint,SerialNumber >> D:\Biswajit-temp\CertReport.htm


((Get-Content “D:\Biswajit-temp\CertReport.htm”) –eq $Null)
Write-Host “N/A”

$body = Get-Content D:\Biswajit-temp\CertReport.htm -Raw
Send-MailMessage -To -from -Subject “Certificate Report” -Body $body -BodyAsHtml -SmtpServer

Explore the extensions property of the certificates.

Any link \ URL pls.