I saw several code examples that let you load specific PowerShell scripts from C # and then call special functions from scripts:
// "dot-source my functions" ps.AddScript(". .\MyFunctions.ps1", $false) ps.Invoke()
My question is: now that this has been done, all the functions inside this file are loaded globally; is there any way to access them as objects from c # code?
I would like to see from the code which functions were loaded into the global context, and then analyze them (see their list of parameters, etc.).
Is it possible?
Thanks lior
source share