PowerShell - Variables and Data Types
What will be the output of this PowerShell command?
2..4 | ForEach-Object { "Index: $_" }2..4 | ForEach-Object { "Index: $_" }2..4 generates the sequence 2, 3, 4.$_ in ForEach-Object$_ represents the current number from the pipeline.$_ outputs each number [OK]$_ is current item [OK]$_ starts at 1 instead of 2$_15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions