Fundamentals16 / 16
Up next

The pipeline variable

# $_ is the current pipeline object
1..3 | ForEach-Object {
    Write-Output "item is $_"
}
# $PSItem is the same thing, spelled out
1..3 | Where-Object { $PSItem -gt 1 }
What you're solving

$_ and $PSItem