Functions/Data/Get-Sum.ps1
Function Get-Sum { [cmdletbinding()] Param ( # InputObject [Parameter(Mandatory=$true,ValueFromPipeLine=$true)] $InputObject ) Begin {$ArrayList = [System.Collections.ArrayList]::new()} Process {$ADD = $ArrayList.Add($InputObject)} End {($ArrayList | Measure-Object -Sum).Sum} } |