Calculating average in Powershell?

Soldato
Joined
14 Mar 2004
Posts
8,040
Location
Brit in the USA
Using the Param cmdlt, what could I do to take 3 numbers and average them into an output? I want user to type:

whatever.ps1 Bob 23 56 17

And the output to read:

The average for Bob is 32

Is that even possible?

Cheers!
 
Back
Top Bottom