Powershell util scripts - unable to use Exit-Json or return Json respone to ansible

so i have an environment with control machine:

ansible --version
ansible 1.9.1
configured module search path = /usr/share/ansible

i’m trying to use the integrated powershell utilities for sending and returning (Exit-Json, Fail-Json) but the powershell script i am using does not recognize these:

changed: => {“changed”: true, “rc”: 0, “stderr”: "Set-Attr : The term ‘Set-Attr’ is not recognized as the name of a cmdlet, \r\nfunction, script file, or operable program. Check the spelling of the name, or \r\nif a path was included, verify that the path is correct and try again…

i am new to ansible and maybe i am missing something here, please assist.

here is the playbook:

Thanks for the info that did it :slight_smile: