$_ is a special variable that represents the current object in the pipeline. When several cmdlets are piped together, this special variable may be used often. Several examples of using this special variable are shown later in this chapter.
A special variable named
$input also represents objects passed along the pipeline, but we do not look at this variable in any further detail in this chapter.
Get-Help about_automatic_variables for more information and examples.