I’m pursuing a python course and trying to run a Python script in PowerShell. While using the sys module I stumble upon the problem of getting the return value of a PowerShell function. The function in question is Date -f ‘dd/MM/yyyy’ that returns 14/03/2019 and I’d like that value to be used as an argument in the Python script. I’ve been able so far to get the literal arguments from the command line, e.g. text.