foreach loop in powershell example Example: foreach loop powershell Click to copyforeach ($item in $items) { ## Do something to each item }