Calculating a standard deviation isn’t a difficult exercise but PowerShell v6.1 offers an easier method.
In Windows PowerShell v5.1 and PowerShell v6.0 the Measure-Object cmdlet has this syntax
PS> Get-Command Measure-Object -Syntax
Measure-Object… Read the full text.