# Win\_shell error while executing powershell script on windows device

**URL:** <https://forum.ansible.com/t/win-shell-error-while-executing-powershell-script-on-windows-device/34292>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [December 7, 2020, 9:28am UTC](https://forum.ansible.com/t/win-shell-error-while-executing-powershell-script-on-windows-device/34292 "2020-12-07T09:28:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kundan\_Singh](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@Kundan\_Singh](https://forum.ansible.com/u/Kundan_Singh)\
**Post date:** [December 7, 2020, 9:28am UTC](https://forum.ansible.com/t/win-shell-error-while-executing-powershell-script-on-windows-device/34292/1 "2020-12-07T09:28:36Z")

</div>

Hi All,

Greetings for the day…

I have created a playbook which basically copy the PowerShell script to endpoint and then execute it on remote server.  
the PowerShell has some argument which i am passing in win\_shell.

Below is the task I have created.
