Why are you doing this invoke?  This has no impact on the other commands in the test, you should have at least one script/function/command to run when invoking powershell