To create a folder in PowerShell, you have to use the
New-Item cmdlet indicating the location and name of the folder and put the
itemType parameter with the value Directory to indicate that you want a folder.
Example to create the SharedFolder folder at the root of drive C:
New-Item "C:\SharedFolder" -itemType Directory
Once the order is validated, the result of the order is displayed:
The New-Item cmdlet is used in PowerShell to create different types like folders, registry key, file …