title: How do I find files by their extension in a specific directory and go through them with Power Shell?
body: <p>I am trying to figure out how I would be able to do it. I have a directory which can be with multiple files, they named differently, but they all have the same extension (.ini). I need to somehow , search files by their extension and then in turn and order replace content's in each of them. Now I figured out how to get file by exact name (not by extension) and replace it's contents</p>
  
  <pre><code>@powershell -command "(Get-Content ..\Folder\File.ini).replace('TextToBeReplaced',\"NewText1`nNewText2") | Set-Content ..\Folder\File.ini"
  </code></pre>
  
  <p>What do I need to change?</p>