Powershell and using the Wildcard Pattern Escape Method

I was recently parsing strings which contained a wildcard pattern in the string name, by using the ‘WildCardPattern.Escape’ method I was able to convert the string which contained the escaped characters to a string that contains the escape codes and then parse the output as expected. In the example, I was attempting to retrieve the datastore name of objects … More Powershell and using the Wildcard Pattern Escape Method