I have this value: $ArrVar_ASP=@("Adobe*","UXP WebView Support")
$($pre.DisplayName) –> Adobe Acrobat (64-bit)
If ($($pre.DisplayName) -notin $ArrVar_ASP) {$ArrVar_ASPPreinstalltemp+=$pre}
But it does not recognise Adobe Acrobat (64-bit) as a member –> Adobe*
Then this value should not be add to the Array $ArrVar_ASPPreinstalltemp
How may I do that?
Thanks,
Finding if a value is member of an array and the array is containing a wildcard. If the value is existing then not adding it to another array.