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