title: How to step backwards in a path using Powershell
body: <p>I am searching through folders in order to find the one that has the contents that I desire. </p>
  
  <pre><code>$path = dir "C:\windows\ccmcache\*\Office.en-us" -Directory
  echo $path
  </code></pre>
  
  <p>It returns:</p>
  
  <pre><code>Directory: C:\windows\ccmcache\c
  </code></pre>
  
  <p>But when I run my command:</p>
  
  <pre><code>Start-Process "$path\setup.exe /uninstall ProPlus /config Uninstall.xml" -Wait
  </code></pre>
  
  <p>It tries to run:</p>
  
  <pre><code>C:\windows\ccmcache\c\Office.en-us\setup.exe............
  </code></pre>
  
  <p>Which doesn't exist! So how can I go back a step so I can run the <code>setup.exe</code> command out of the <strong><em><code>c</code> folder</em></strong>?
  Something like:</p>
  
  <pre><code>$path2 = $path\cd..
  </code></pre>
  
  <p>Thank you all in advance. </p>