Powershell User Input Validation In Python Iteration