title: powershell error :cannot find path because it does not exist
body: <p><a href="https://i.stack.imgur.com/yY06C.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>i ran below script in power shell and its giving cannot find path as it does not exist .although i have specified correct path .
  Please can anybody suggest what mistake i am making and how to correct this ? i have attached a <a href="https://i.stack.imgur.com/ihJ6N.png" rel="nofollow noreferrer">screenshot</a> as well</p>
  <pre><code>$folder=&quot;D:\Patch\data&quot;;             
  $txtFile=&quot;D:\Patch\Export.txt&quot;; 
  $pattern=&quot;\1+.+&quot;;              
  
  get-content $txtFile | %{
  
      if($_ -match $pattern)
      {
          mkdir &quot;$folder\$_&quot;;
      }
  }
  </code></pre>