Mocking things this way effectively disables all the actual logic in your cmdlet. As a result, you're basically testing the mock, not the actual production code. Are you sure your code is reasonably covered?