开发者

Invoking a specific function from PowerShell script from C#

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜