1

I'm working on an application to have Powershell embedded in it. I'm wondering if there is a way I can launch a separate Powershell command window, and interact with my application through this Powershell window? Can anyone point out some reference? Thanks a lot.

Charles
  • 50,943
  • 13
  • 104
  • 142
awatto
  • 231
  • 5
  • 16

1 Answers1

0

After some digging, I figure out what I can do in this case, is to create a PowerShell provider in my application. With this provider, user will be able to interact with the application through PowerShell running outside of the application.

GvS
  • 52,015
  • 16
  • 101
  • 139
awatto
  • 231
  • 5
  • 16
  • 1
    This was a real answer until you asked "Any Comments?" It is pointless to ask questions in answers; nobody will see them. If you have a real question, you can ask it in the usual way. – Robert Harvey Sep 20 '11 at 17:07
  • Yes. I just implemented what I mentioned above. That works. In a separate PowerShell console, I can import module of my own assembly, and start to create objects and methods provided by my application. – awatto Oct 07 '11 at 16:12