$Name = $args[0]
For ($i = 1; $i -lt $args.Count; $i++) # Start at postition 1 rather than 0 so the name is ignored
{
$Average += [int]$args[$i] # Add each of the numbers up: += same as '$Average = $Average + ...'
}
$Average = $Average / ($args.count - 1) # Divide by number of arguements passed, -1 to exclude the name
Write-Host "The average for" $Name "is" $Average