Private/Parse-FODVulnerabilityCount.ps1

# Parse vulnerability count
function Parse-FODVulnerabilityCount
{
    [cmdletbinding()]
    param($InputObject)

    foreach ($VulnerabilityCount in $InputObject)
    {
        [PSCustomObject]@{
            PSTypeName = 'FOD.VulnerabilityCountObject'
            severityId = $VulnerabilityCount.severityId
            severity = $VulnerabilityCount.severity
            count = $VulnerabilityCount.count
            Raw = $VulnerabilityCount
        }
    }
}