icinga-powershell-framework/lib/core/tools/Test-IcingaFunction.psm1
2019-10-22 19:19:57 +02:00

16 lines
255 B
PowerShell

function Test-IcingaFunction()
{
param(
[string]$Name
);
if ([string]::IsNullOrEmpty($Name)) {
return $FALSE;
}
if (Get-Command $Name -ErrorAction SilentlyContinue) {
return $TRUE;
}
return $FALSE;
}