PowerShell/demos/python/inline_python.ps1
2016-08-04 16:56:43 -07:00

17 lines
331 B
PowerShell

#
# An example showing inline Python code in a PowerShell script
#
"Hello from PowerShell!"
# Inline Python code in a "here string" which allows for a multi-line script
python3 -c @"
print(' Hello from Python!')
print(' Python and PowerShell get along great!')
"@
# Back to PowerShell...
"Back to PowerShell."
"Bye now!"