title: How to search through folders for a certain file using Powershell
body: <p>I am writing an uninstall script for Office using Powershell. I need the script to search through:</p>
  
  <pre><code>    C:\windows\ccmcache\
  </code></pre>
  
  <p>There are a number of folders in there. Is there a way to find which folder has the contents that I am looking for? So let's say I am looking for a folder that contains:</p>
  
  <ol>
  <li>office.en-us</li>
  <li>office64.en-us</li>
  </ol>
  
  <p>and so on. How can I return that exact path? Because that is where I am running the uninstall from but the catch is I don't know what folder Office is in the ccmcahce folder. </p>
  
  <p>Thank you all in advance. </p>