This is irrelevant to windows

most of the commands like pip freeze do not work in the windows

Hello @rishabhchhabra251996,
Which windows version are you using because pip freeze works with windows 10,make sure that you have python installed in your system. You can check it by typing following command:
python --version
If it outputs the version then you are good to go.
Then the command pip freeze must work.