title: Update file in each subdirectory with a specific name
body: <p>I have a <a href="/questions/tagged/batch-file" class="post-tag" title="show questions tagged &#39;batch-file&#39;" rel="tag">batch-file</a> which pulls a file from a url using <a href="/questions/tagged/powershell" class="post-tag" title="show questions tagged &#39;powershell&#39;" rel="tag">powershell</a> and then outputs/updates the file in a specific directory. But I have many of these directories, the only thing that changes about the path is numbers between <code>\command\</code> and <code>\setup\</code>. How would I get it to put the file in every folder automatically?</p>
  
  <p>Essentially I would like to output the downloaded text file in each of the <code>install</code> <a href="/questions/tagged/subdirectories" class="post-tag" title="show questions tagged &#39;subdirectories&#39;" rel="tag">subdirectories</a> of that path.</p>
  
  <p>Also how could I make it happen silently?</p>
  
  <pre><code>@echo off
  echo !!! PRESS ANY KEY TO CONTINUE AND UPDATE!!!
  pause
  
  powershell -Command "Invoke-WebRequest http://example.com/log/read.txt" -OutFile C:\Users\Administrator\AppData\Roaming\base\command\234235234\setup\install\read.txt 2&gt;NUL &gt;NUL
  
  echo !!! DONE NOW !!!
  echo !!! YOU CAN RE-OPEN NOW !!!
  </code></pre>