- Windows PowerShell ISE
- Windows 10
Launch the utility:
Next, change directory. The PowerShell window may open with you in the USER folder by default.
You’ll need to change directory (cd) to the file location you want the folders to go:
Begin creating your folder names inside quotations, and separated by a comma. If it’s easier for you to create all of the names in advance in a word processing app and format them with quotations and commas, I recommend you do so.
After you've set up your folder names, you’ll need to tell PowerShell what you want to do with these by piping (|) to a command as follows:
| %{New-Item -Name "$_" -ItemType "Directory"}
The end results. As we can see, the script successfully created these new folders to the specific location with one command.😊