pip installs packages from PyPI and there is no pydoc at PyPI. pydoc is a module from the standard library, that is, it's always available.
» pip install pydocs
» pip install pydocstyle
» pip install pydoc-fork
Use python -m pydoc os instead of pydoc directly, no need to add to path variable.
the -m tells python that pydoc is a pre-built module in python and NOT a script (.py file) sitting in the current working folder.
See https://docs.python.org/3/using/cmdline.html for details
PS adding C:\python27\Lib\pydoc.py to the Windows path in the system environment variables does not work. Even after logging out and back in it does not work.
The PATH environment variable is a list of directories to search for a given executable. So you should be adding C:\python27\Lib to your PATH (not including the filename).
As for the pydoc.bat file you've created, one place to put it would be the C:\python27\Scripts directory which is usually added to your PATH by the python installation (since that folder contains miscellaneous scripts that you might like available at the command line).