PowerShell - Cmdlets and Pipeline
Which of the following is the correct syntax to use
ForEach-Object to print each item in a list?ForEach-Object to print each item in a list?$_ to refer to the current item. 1..3 | ForEach-Object { Write-Output $_ } correctly uses this syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions