Advertisement
Blackthorn

pipe-test.ps1

Dec 4th, 2022 (edited)
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #/usr/bin/env pwsh
  2.  
  3. param (
  4.     [parameter(Position=1, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
  5.     [alias ("Values")]
  6.     [array]$Numbers
  7. )
  8.  
  9. $Numbers | Measure-Object -AllStats
Tags: Pipeline
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement