Convert Python Script To Powershell