Variable type passed to generic

Is there any way to get around this being an error?

c#
Type type = Type.GetType("OSIsoft.PI.Net, PIThreadInfo");

return powershell.Invoke<type>()
Was this page helpful?