# \[ansible tower\]how to pass EXTRA VARIABLES into the powershell script

**URL:** <https://forum.ansible.com/t/ansible-tower-how-to-pass-extra-variables-into-the-powershell-script/28500>\
**Category:** Ansible Project\
**Created:** [September 5, 2018, 4:00am UTC](https://forum.ansible.com/t/ansible-tower-how-to-pass-extra-variables-into-the-powershell-script/28500 "2018-09-05T04:00:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LB1](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@LB1](https://forum.ansible.com/u/LB1)\
**Post date:** [September 5, 2018, 4:00am UTC](https://forum.ansible.com/t/ansible-tower-how-to-pass-extra-variables-into-the-powershell-script/28500/1 "2018-09-05T04:00:58Z")

</div>

when i launch template with EXTRA VARIABLES tag: ‘201809051153’, the powershell ps1 cannot invoke the tag.

In following environment, by `cat 111.txt`, it is not display ‘201809051153’, but ‘{ tag }’.

platform: ansible tower 2.6.2playbook:

- hosts: all  
tasks:

- name: test parameter  
script: test1.ps1  
args:  
executable: /usr/bin/pwsh  
chdir: ~

test1.ps1 content:  
Write-Host {{ tag }} | Out-File ~/111.txt
