I have just realized that there is no need to add an entry to do the aforementioned test. The top entry ("C:\Program Files\Java\jdk-21\bin") in my screenshot cannot be found in the output of the path command. That is the entry I added earlier today. I guess the next test would be rebooting my PC unless there is another way to force the Command Prompt to take the path edited in the Control Panel.