I am trying to execute a Powershell custom function from c# using Start.Proccess,
I know that we should use Powershell class in order to execute powershell scripts, but I am having issues with x86, x64 platforms because I am calling the Powershell script in a Custom Action that is used by a Setup project.
So Could you tell me how to call a Powershell custom function using Start.Process??
In powershell you need to load the script first where the function is placed with ". .[scriptPath]" and then call the function, but In C# I don't know how to do it.