title: Exclude folders for the reduces the size of images
body: <p>I have a script that reduces the size of images in folders and subfolders. However, I would like to exclude some of the folders.</p>
  
  <p>I have find the parameter <code>$source_listephotos = Get-ChildItem $source -Recurse | where {$_.FullName -notmatch $exclude_list}</code> but it allows exclude one folder and not several.</p>
  
  <pre><code>$source = "U:\TEST\Compression\images"
  $exclude_list = @('Imprimerie')
  
  $source_listephotos = Get-ChildItem $source -Recurse | where {$_.FullName -notmatch $exclude_list}
  </code></pre>
  
  <p>Do you have a solution ?</p>