2020-03-24 19:08:37 +01:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
2018-02-13 18:23:53 +01:00
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
2016-08-03 23:49:35 +02:00
|
|
|
#
|
|
|
|
# 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!"
|
|
|
|
|