spotlight-vulnerabilities/Get-CsVulnInfo.psm1

function Get-CsVulnInfo {
<#
    .SYNOPSIS
        Get details on vulnerabilities by providing one or more IDs
 
    .PARAMETER ID
        One or more vulnerability IDs
#>

    [CmdletBinding()]
    [OutputType([psobject])]
    param(
        [Parameter(Mandatory = $true)]
        [array]
        $Id
    )
    process{
        $Param = @{
            Uri =  '/spotlight/entities/vulnerabilities/v2?ids='
            Method = 'get'
            Header = @{
                accept = 'application/json'
                'content-type' = 'application/json'
            }
        }
        switch ($PSBoundParameters.Keys) {
            'Verbose' { $Param['Verbose'] = $true }
            'Debug' { $Param['Debug'] = $true }
        }
        Split-CsArray -Activity $MyInvocation.MyCommand.Name -Param $Param -Id $Id
    }
}