How to properly use a PowerShell Module in C# Code How to properly use a PowerShell Module in C# Code powershell powershell

How to properly use a PowerShell Module in C# Code


All credit goes to BDarley

I was able to get my C# PowerShell code working after setting the platform target to x64.