I am implementing a script in powershell and getting the below error. The sceen shot is there exactly what I entered and the resulting error.

At this path there is file Get-NetworkStatistics.ps1 which I got from Technet Gallery. I am following the steps from it, though there are errors.