hsts is displaying as 'max-age=31536000' not as max-age=31536000.
if ($Site.HSTS)
{
if ($Site.HSTSAge -lt 31536000)
{
}
cIisCustomHeaders ($FQDN + '_HSTS')
{
Name = 'Strict-Transport-Security'
Value = "max-age=$($Site.HSTSAge)"
Location = $FQDN
Ensure = $Site.HSTS
}
}