Calling other Powershell Module

Hi

I was wondering if there was functionality to call another powershell module from another similar to how the find module calls the stat module to get file information. I am in the middle of building a win_find module and having this ability will help to reduce the amount of code I need to write.

Thanks

Jordan

You might be able to do something like this if you build an Action module.

An Action Module executes on the control machine but has a method named _execute_module that lets you execute a module on the remote targets. The copy module is actually an action module that transfers the src file to the target in a temp location then executes a standard module on the target to copy the temp file to dest.

Using an Action Module may let you execute one module, get its results, then execute another module using a similar technique.