SnipeitPS/SnipeitPS/Private/Test-SnipeItAlias.ps1
2021-05-23 19:23:24 +03:00

13 lines
386 B
PowerShell

function Test-SnipeItAlias()
{
[CmdletBinding()]
param(
[parameter(mandatory = $true)]
[string]$invocationName,
[parameter(mandatory = $true)]
[string]$commandName
)
if($invocationName -ne $commandName) {
Write-Warning "$invocationName is still working, but it has been superceded by $commandName, please use it instead."
}
}