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