title: Issue using an array containing criteria with wildcards
body: <p>I've been trying to run a powershell code to split a file in 2. </p>
  
  <p>I've got a couple of regular arrays, that works just fine. 
  The 3rd array contains wildcards for each of the criteria, and that doesn't work at all. </p>
  
  <p>I've tried -in -notin, -like -notlike, -contains -notcontains, -match -notmatch, i'm not getting the results I want. </p>
  
  <pre><code>    $NonAutoStructure = @("Not_Found", "UK Training Centre", "IRISH Training Centre", "Head Office", "UK Newmedica")
  $AutoJournalDescriptions = @("STORE TRANFrom *",  "*SALES BANKED*")#, "*/* CREDIT" , "BANKING DIFF*BQ*" , "*/* MASTERCARD/VISA")  
  $InactiveStores = @("4410", "0996", "1015", "5996")
  
  
  $NonAutoJournalCompanies = {$_.Description -notcontains $AutoJournalDescriptions} 
  $AutoJournalCompanies = {$_.Description -contains $AutoJournalDescriptions}
  #$NonAutoJournalCompanies = {$_.structure -in $NonAutoStructure -or $_.Company -in $InactiveStores -and  $_.Amount -ne "0.00"}
  #$AutoJournalCompanies = {$_.structure -notin $NonAutoStructure-and $_.Company -notin $InactiveStores -and  $_.Amount -ne "0.00"}
  
  $UNREC_S0 | Where-Object $NonAutoJournalCompanies | Export-Csv \\774512-LRBSPT01\*****$\uardata\rt1\BankRec\Test\step1\TestNonAutoJournal.txt -notype
  $UNREC_S0 | Where-Object $AutoJournalCompanies | Export-Csv \\774512-LRBSPT01\*****$\uardata\rt1\BankRec\Test\step1\TestAutoJournal.txt -notype
  $UNREC_S0 | Where-Object $ZeroValuelines | Export-Csv \\774512-LRBSPT01\*****$\uardata\rt1\BankRec\Test\step1\TestZeroLines.txt -notype
  </code></pre>
  
  <p>The Array I have issues with is the $AutoJournalDescriptions. I can only get it working if the array contains a single criteria. Otherwise, it seems to ignore them all. 
  Here it only contains a couple, but the criterias after the # should be included too. 
  I'm trying to include and exclude these criterias as part of #(Non)AutojournalCompanies files so that all data is preseverd, but separated and can then be directed towards different process streams. </p>
  
  <p>Perhaps i'm simply trying to use a function that isn't meant to work that way...?
  I've been searching for a solution all day to no avail. 
  I could type all those criterias individually in the file production criteria, but that makes it heavy to read and cumbersome to maintain. I would prefer to enrich/modify the array when changes are required. </p>
  
  <p>I hope that all makes sense. 
  I'm pretty new to powershell. </p>
  
  <p>Many thanks, </p>
  
  <p>Antoine</p>