PowerShell comparisons:

-Like

Is most helpful when used with a wildcard, almost like a filter.

For example these will both test true:

“Something here” –like ‘*ere’

“Something here” –like ‘Some*’

-Contains

Reviews a collection to see if it includes a single value.

For example these will both test true:

“Something”, “here” –contains “here”

“Something”, “here” –contains “Something”

Just remember that if you want to search for a part use like and if you want to search for value in a collection use contains. I hope this helps! Happy PowerShelling!