---
type: link
tags: [pwsh]
created: 2025-12-26T16:43:00.817+00:00
updated: 2026-04-06T10:52:51.372276+00:00
---# pwsh create folders from csv string array in current dir

**URL:** [https://search.brave.com/search?q=pwsh%20create%20folders%20from%20csv%20string%20array%20in%20current%20dir](https://search.brave.com/search?q=pwsh%20create%20folders%20from%20csv%20string%20array%20in%20current%20dir)

pwsh create folders from csv string array in current dir "[folder1,folder2,folder3,folder4]" -replace '\[|\]' -split ',' | ForEach-Object { New-Item -ItemType Directory -Path ".\$_" }


---
**Keywords:** pwsh
