Testing for string in PowerShell
===

I am a PowerShell newbie and I have a string in $line.

How do I test that $line has the word "Bat", such that it succeeds for the string "Bat man", but fails for "Batman"?

In other words, I want to test for a standalone word, not a string sequence that is part of a word.

Thank you.

