Windows 10 uses a PATH system variable to track the paths for programs that can been then be referenced in command prompt. So, when you want to run python scripts in command prompt you want to confirm that when the 'python' command is referenced, Windows will know where to find it.
1. Search for Advanced System Settings.
2. The Systems Properties dialog box will open. On the Advanced tab, click on 'Environmental Variables'.
3. Click to enter a new system variable.
4. Enter the path of the executable and its name for Windows.