# \[Perspective\] PowerShell Script + system.util.execute

**URL:** <https://forum.inductiveautomation.com/t/perspective-powershell-script-system-util-execute/53718>\
**Category:** Ignition\
**Tags:** ignition81, scripting, perspective\
**Created:** [December 3, 2021, 9:23am UTC](https://forum.inductiveautomation.com/t/perspective-powershell-script-system-util-execute/53718 "2021-12-03T09:23:02Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [December 3, 2021, 3:50pm UTC](https://forum.inductiveautomation.com/t/perspective-powershell-script-system-util-execute/53718/12 "2021-12-03T15:50:02Z")

</div>

`ProcessBuilder` example script:

> [@Procedure for installing python libraries from source](https://forum.inductiveautomation.com/t/procedure-for-installing-python-libraries-from-source/26022/16):
>
> Oh, right - system.util.execute is a 'fire-and-forget', it doesn't give you access to standard output. Try adapting this: from java.lang import ProcessBuilder, String pb = ProcessBuilder([r"C:\Users\pgriffith\AppData\Local\Microsoft\WindowsApps\python3.exe", r"C:\Users\pgriffith\Downloads\test.py"]) process = pb.start() output = String(process.getInputStream().readAllBytes()) print output (Note: This blocks until the process completes waiting on the input stream. It may or may not ever compl…

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-powershell-script-system-util-execute/53718)._
