Removed use of variables in Write-Progress logic

To pass test "does not pollute the global namespace"
Removed call to Pester.bat

Use new PassThru parameter of Invoke-Pester to get test results.