functions/Test-DependencyVulnerabilities.ps1
function Test-DependencyVulnerabilities { [CmdletBinding()] param ( [Parameter(Mandatory=$true)] [string] $ReportLocation, [int] $Threshold = 0 ) begin { Write-Host "Begin Test" -Foreground yellow } process { $value = Measure-DependencyVulnerabilities -ReportLocation $ReportLocation $test = $value -le $Threshold Write-Host "Test Value: $test" -Foreground yellow } end { $test Write-Host "End Test" -Foreground yellow } } |