PS > $exp = "python -c `"import json, datetime; print(json.dumps({'date': datetime.datetime.now().strftime('%Y%m%d')}))`""
PS > Invoke-Expression $exp | % { convertfrom-json $_ }
date
----
20210222
PS >
Last active
February 22, 2021 03:29
-
-
Save hdformat/9951f36543c321eafb917a4f330771d7 to your computer and use it in GitHub Desktop.
PowerShell with Python
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment