Powershell While Loop Array Python Practice