title: Calling Powershell functions from C#
body: <p>I have a PS1 file with multiple Powershell functions in it. I need to create a static DLL that reads all the functions and their definitions in memory. It then invokes one of these functions when a user calls the DLL and passes in the function name as well as the parameters for the function. </p>
  
  <p>My question is, is it possible to do this. ie call a function that has been read and stored in memory? </p>
  
  <p>Thanks</p>