title: Trouble creating multiple folders from a TXT file in Windows PowerShell or CMD?
body: <p>I was wondering if there is a way I could create multiple folders from a TXT document in windows PowerShell or CMD? I have a TXT file full of drawing numbers, like 5614-E-1459_SH 1 (except theirs about 500 hundred of them). Due to policies at my job I am not aloud to use third party software, so I was wondering if there was a way to do this from the command prompt or Windows PowerShell? I know that mkdir "C:\temp\5614-E-1459_SH 1" will create one of the folders I need. But is there a way to extract the files from a TXT and make it output into folders, without third party software like Text2Folders? </p>
  
  <p>I have gotten this far with the PowerShell script, but as I dont have admin writes at work (where its needed most) I get the <code>Set-ExecutionPolicy</code> error. Is there a work around this?</p>
  
  <pre><code>$Users = Get-Content "C:\Users\usermgx\Desktop\folderDir.txt"
  ForEach ($user in $users)
  {
  $newPath = Join-Path "C:\Users\usermgx\Desktop\Dir" -childpath $user
  New-Item $newPath -type directory
  }
  </code></pre>