开发者

Invoking a specific function from PowerShell script from C#

开发者 https://www.devze.com 2023-02-21 12:32 出处:网络
Is there a way to call a specific function from a PowerShell script from C# code? I have the basic example up and running that executes a string with a PowerShell script.

Is there a way to call a specific function from a PowerShell script from C# code?

I have the basic example up and running that executes a string with a PowerShell script.

What if i have a file with many functions and i'd like 开发者_运维技巧to load only a particular one into C# and execute it ?

How can this be done?

Also, is there a way to load the parameters into this function dynamically, without actually knowing ahead which is the function that is loaded?

Thanks!

0

精彩评论

暂无评论...
验证码 换一张
取 消