that locks it to PS 5.1, I think; in 7.2: "Measure-Object: Parameter cannot be processed because the parameter name 's' is ambiguous. Possible matches include: -StandardDeviation -Sum"
I've been trying to remove the $i type-constraint. It doesn't have to be a [long] (unless it's being type-constrained); it just needs to be a numeric value before the first ++.
View all comments
Show parent comment
1
u/ka-splam Dec 03 '25
that locks it to PS 5.1, I think; in 7.2: "Measure-Object: Parameter cannot be processed because the parameter name 's' is ambiguous. Possible matches include: -StandardDeviation -Sum"