© Chet Hosmer 2019
Chet HosmerPowerShell and Python Togetherhttps://doi.org/10.1007/978-1-4842-4504-0_6

6. Launching Python from PowerShell

Chet Hosmer1 
(1)
Longs, SC, USA
 

So far, the approach to integrating Python with PowerShell has been to launch PowerShell scripts from Python as a subprocess. In this chapter, the roles will be reversed, and PowerShell will feed data to Python scripts. One of the key elements of PowerShell is pipelining the process of transferring the results of one CmdLet to the next. With that in mind, why not treat Python as just another pipeline element and execute Python scripts driven by data acquired by PowerShell?

Reversing Roles from PowerShell to Python

A PowerShell script and a Python script are both necessary to illustrate ...

Get PowerShell and Python Together: Targeting Digital Investigations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.