I tried this command:
dir /s /a:-d /o:-s /b
However this command gives the biggest file hierarchy wise. For example, first it gives the biggest file in the main folder and listed out other files, then the biggest file in the subfolder. I need the biggest file on the top whether it is in the folder or subfolder.