public/Get-NexposeVulnerabilityItemCheck.ps1

Function Get-NexposeVulnerabilityItemCheck {
<#
    .SYNOPSIS
        Returns the vulnerability checks that assess for a specific vulnerability during a scan
 
    .DESCRIPTION
        Returns the vulnerability checks that assess for a specific vulnerability during a scan
 
    .PARAMETER Id
        The identifier of the vulnerability
 
    .EXAMPLE
        Get-NexposeVulnerabilityItemCheck -Id '7-zip-cve-2008-6536'
 
    .NOTES
        For additional information please see my GitHub wiki page
 
    .FUNCTIONALITY
        GET: vulnerabilities/{id}/checks
 
    .LINK
        https://github.com/My-Random-Thoughts/Rapid7Nexpose
#>


    Param (
        [Parameter(Mandatory = $true)]
        [string]$Id
    )

    Write-Output @(Invoke-NexposeQuery -UrlFunction "vulnerabilities/$Id/checks" -RestMethod Get)
}