Powershell Use Output As Input Python Syntax If Else Statement