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