Inspect targets before changes - PowerShell Scripting | Zoonk
Inspect targets before changes
Use Get-ChildItem, dir, ls, or Test-Path to inspect targets before changing them. Confirm that the files, folders, or names you are about to affect are the ones you actually intend.