fetch element from an array in powershell using for loop code example Example: foreach loop powershell foreach ($item in $items) { ## Do something to each item }