Python Return Function Syntax In Powershell If Statement