---
type: note
tags: [pwsh]
created: 2025-12-26T18:12:06.4+00:00
updated: 2026-04-06T10:59:13.695612+00:00
---# pwsh create folders from string inside parantheses in current dir

**URL:** [#](#)

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


---
**Keywords:** pwsh
