title: Changing directory to a folder matching a regex in powershell
body: <p>I want to CD into a folder that begins with the word "Patch", followed by several other digits. All I care about is that it begins with the word "Patch"</p>
  
  <p>How can I change my directory using a regex in powershell? </p>
  
  <p>This is what I have at the moment and it doesn't work. Am I on the right track though?</p>
  
  <pre><code>$FolderPath = "^Patch[0-9]+$"
  
  cd "C:\Test\" + $FolderPath
  </code></pre>