Hi,
I have an array of collection of keyword:
$KeyWord = @("Fail","Exception","Terminated","Error")
I want to check in a textfile sample.txt, if any or all keywords from the array $KeyWord exist. If any of the keyword exist in the textfile, a boolean variable $ExceptionOccurred will return $true.