how to fix 'auto-py-to-exe' is not recognized as an internal or external command, operable program or batch file

This works on VSCode:

python -m auto_py_to_exe

If I install "auto-py-to-exe" using following command, as described in this link as well as from the comment from Justin Ezequiel (above):

python -m pip install auto-py-to-exe

I am able to run it (in Windows 10) using following command:

python -m auto_py_to_exe