Python Add Function To Powershell Version