Powershell Custom Function In Python Syntax