We probably need to see what you've already attempted, but in general, PowerShell is very slow compared to C#. If performance is a concern, since you're in a C# app anyway, you may find that it's better to leave PowerShell out of the picture entirely.
↧