Make sure that Python 3 is installed (I used 3.11, ymmv) and make sure to install Pillow via python3 -m pip install pillow
Change the $root
variable in the powershell file to the folder immediately above where your installation of World of Warships is.
Make sure that wowsunpack.exe is in the World of Warships folder.
You may already have it, but if not, it is available here.
Here is a page about it and the GUI tool created for it: https://forum.worldofwarships.eu/topic/113847-all-wows-unpack-tool-unpack-game-client-resources/
Place the minimap.ps1 file and the imageOverlay.py file from this gist in your World of Warships folder.
Run the minimap.ps1 file. Look in the folder /World of Warships/res_unpack/ for the minimaps.zip file.
Success!