$DirNameSp = Get-Content "D:\test\spisok.txt" #Отсюда берем список папок foreach ( $DirName in $DirNameSp ) { Set-Location D:\test #Устанавливаем место где будем создавать папки New-Item -Path $DirName -ItemType Directory }