Function RunTests { $run_tests = "cd ../; go clean -testcache; go test ./..." Invoke-Expression $run_tests } if ($MyInvocation.InvocationName -ne ".") { RunTests }