---
type: note
tags: [pwsh]
created: 2025-12-26T18:12:06.4+00:00
updated: 2026-01-02T01:39:32.364Z
---# 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
