#!/usr/bin/env pwsh Set-StrictMode -Version 3.0 $result = 0 Get-Content .\pp.txt | Select-String -Pattern '^ ' | ForEach-Object { $_ -cmatch '' | Out-Null [float] $Matches[1] } | ForEach-Object { $result += $_ } $result / 1000