Powershell Function Definition Python