Is there a way in the parameter section of a function to refuse wild cards.
I have found i can use this to put at the top of the function but would like to deal with it at the parameter level rather than in the function itself.
if ([System.Management.Automation.WildcardPattern]::ContainsWildcardCharacters($Computer)) {
Write-Error -Message "Get-VAppAndVMData does not accept wildcard characters"
Throw
}