title: Powershell script to search folders using .csv files without Path
body: <p>I am new to the powershell scripting and hence need one help in scripting, the script which I am looking for should search for the folders as per the entries in <code>.csv</code> file, please note that it should search for the folders in the drive without knowing the path and move it to the destination.</p>
  
  <p>I did some research and created below script which is taking data from <code>.txt</code> file and moving the data to the destination however it does not work if I just write <code>C:\</code> at the place of source folder. </p>
  
  <p>Request you to please help me :)</p>
  
  <pre><code>Get-Content C:\abc.txt | 
     Foreach-Object { 
                      move-item -path "C:\0123\$_" -destination "C:\To Archive\$_"
                    }  
  </code></pre>