Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Pipe
1.0.0
Limit-First.ps1
<#
.SYNOPSIS
Return First Element
.DESCRIPTION
Return only the first element from the pipe
.EXAMPLE
ls | Limit-First
#>
filter
Limit-First
{
$_
Break
}