This uses the excellent ExifTool by Phil Harvey:
dist_unix.sh and dist_windows.sh build minimal, self-contained distros of ExifTool for both Unix (Linux/macOS/etc) and Windows. Use Git BASH to run the Windows script.
The Windows version uses Strawberry Perl: