Builders

Builder

ForEach over files

List files, then run one action per file.

A starting point for "do this to every matching file." Replace the ForEach-Object body with Copy-Item, Remove-Item -WhatIf, or anything else. Read it before you run it.

Preview

foreach-files.ps1