powershell foreach array item code example Example: foreach powershell ForEach($user in $users){ Write-Output $user }