When a program name/path includes spaces, you need to put the whole name
in quotes, like
"C:\Program Files\Python310\python.exe" -m pip install --upgrade
Now, if python is on your path (and 3.10 is the first python found), you
should be able to simpify that to
python -m pip install --upgrade
--
Richard Damon