functions/Measure-DependencyVulnerabilities.ps1
function Measure-DependencyVulnerabilities { [CmdletBinding()] param ( [Parameter(Mandatory=$true)] [string] $ReportLocation ) begin { Write-Host "Begin Measure" -Foreground yellow } process { $value = Get-VulnerabilityCount -filePath $ReportLocation Write-Host "Value found: $value" -Foreground yellow } end { [int]$value Write-Host "End Measure" -Foreground yellow } } |