Snippet - select -first 1

Nov 28, 2017 14:23



function SelectFirst_func{
Param(
[parameter(ValueFromPipeline)]$param1
)
$Param1 | select -first 1
}

New-Alias -name sf -Value SelectFirst_func

powershell, snippet

Previous post Next post
Up