# Powershell script

**URL:** <https://forum.inductiveautomation.com/t/powershell-script/73793>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 16, 2023, 2:53pm UTC](https://forum.inductiveautomation.com/t/powershell-script/73793 "2023-05-16T14:53:32Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 24, 2023, 3:42pm UTC](https://forum.inductiveautomation.com/t/powershell-script/73793/8 "2023-05-24T15:42:05Z")

</div>

You're not structuring your commands correctly. Everywhere there's a _space_ in a raw command line:  
`powershell.exe -File 'C:\Program Files\Inductive Automation\Ignition\data\git-auto-commit.ps1'`  
You need a new entry in the list you pass to system.util.execute or subprocess:

```python
system.util.execute([
		"powershell.exe",
		"-File",
		"'C:\Program Files\Inductive Automation\Ignition\data\git-auto-commit.ps1'"
	])

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/powershell-script/73793)._
