3

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!

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.