Private/Get-KB4ReportingContextInternal.ps1
|
function Get-KB4ReportingContextInternal { [CmdletBinding()] param() if ($null -eq $script:KB4ReportingContext) { throw 'Not connected to the KnowBe4 Reporting API. Run Connect-KB4Reporting first.' } $script:KB4ReportingContext } |