# Calling other Powershell Module

**URL:** <https://forum.ansible.com/t/calling-other-powershell-module/22922>\
**Category:** Ansible Developer\
**Created:** [October 30, 2016, 3:43am UTC](https://forum.ansible.com/t/calling-other-powershell-module/22922 "2016-10-30T03:43:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [October 30, 2016, 3:43am UTC](https://forum.ansible.com/t/calling-other-powershell-module/22922/1 "2016-10-30T03:43:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jim\_Ficarra](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@Jim\_Ficarra](https://forum.ansible.com/u/Jim_Ficarra)\
**Post date:** [October 30, 2016, 5:02pm UTC](https://forum.ansible.com/t/calling-other-powershell-module/22922/2 "2016-10-30T17:02:21Z")

</div>

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.
