title: Wildcard folder match powershell
body: <p>I have following Power Shell script I need to modify.</p>
  
  <pre><code>$filepath = "F:\feeds\Amazon\"
  $temppath = $filepath+"temp.csv"
  $files = ls -Path $filepath *.csv
  foreach ($file in $files){
      gc $file.FullName |
      % { if($_.indexOf("|~|") -eq -1) {$_ -replace "`"((?:`"`"|.)*?)`"(?!`")", "|~|`$1|~|" -replace "`"`"", "`""} else {$_ -replace " ", " "}} |
      sc  $temppath
      ri $file.fullName
      rni -Path $temppath -NewName $file.fullName
  }
  </code></pre>
  
  <p>This script loops through all .csv files in a defined folder and change the text qualifier. Now I need to change this a bit and I am stucked.</p>
  
  <p>Basically my CSV files are spitted into multiple folders like. Amazon1, Amazon2, Amazon3 .. so on. Is there anything wild card match sort of things I can do here so that it looks into all folders whose name starting with Amazon?</p>
  
  <p>I Don't want to loop through folders.</p>