title: Powershell - Exclude folders in Get-ChildItem
body: <p>How to exclude folders ? Now I hardcode the folder names but i want  it to be more flexible.</p>
  
  <pre><code>foreach($file in Get-ChildItem $fileDirectory -Exclude folderA,folderb)
  </code></pre>