mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
16 lines
255 B
PowerShell
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;
|
|
}
|