Powershell Run Cmd Command With While Loops