Getting the MD5 hash of a file on Linux is very easy. However, in Windows, there are several utilities, but using Windows internally inbuilt command certutil, it can be done as follows in the Windows shell:
C:>for /r %%f in(x) do (certutil -hashfile "%%f" MD5) >> output.txt
output.txt will contain the files with their MD5 hashes.