windows powershell new folder code example Example: powershell new folder New-Item -ItemType directory -Path C:\Scripts\newDir