Direct test execution fix

Corrects a bug that occurs when a test script is dot-sourced into the global scope.  In that situation, mocks can wind up being executed by modules that were not intended to see the mock (including Pester itself.)
Merge branch 'dlwyatt-GlobalMockFix' into Beta