by eugene-goldberg at 2013-02-21 06:44:54
Greetings,by DonJ at 2013-02-22 04:29:15
I’m developing a C# Asp.NET application and I have some tasks in it, which would be better served by PowerShell.
Is there a way to configure my PS environment to have access to objects that are defined my application assemblies?
For example: one of my application’s business objects is called "Server". What would it take to be able to say: Get-Object Server?
Not really, no. PowerShell could certainly load and access nearly any .NET assembly, but you can’t pass object references quite like that.
Inside your app, are you shelling out to PowerShell, or instantiating the PowerShell engine as a .NET class?