Terminal output not properly being recognized on windows

Terminal output not properly being recognized on windows. The screen shot below shows the issue where the output was correct, but it wants to try again, it continuously loops trying different commands