---
type: link
tags: [public, hash]
created: 2025-11-06T02:51:46.190Z
updated: 2025-11-15T20:19:56.159Z
---# pwsh create folders from array in target dir

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

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


---
**Keywords:** public, hash
