Added support for Func<> return types in PSInvokeMember