How can I convert all DDS files in a bunch of nested subfolders into TGA files?

I have a folder which contains almost 4,000 DDS image files organized in 462 subfolders nested to various depths, and I want to convert all the DDS files into TGA files with the same filenames (aside from the file extension, of course) and in the same places in the folder-structure.

Based on a quick search it sounded like the easiest free tool would be ImageMagick. I know I can convert an individual file using ImageMagick by right-clicking inside the folder containing that file, selecting “Open in Terminal” to open a command-line window, and entering a command like magick -format tga 1b711888.dds (which reads an existing file named “1b711888.dds” and creates a new file named “1b711888.tga” in the same location), but doing that individually for thousands of files would be extremely impractical. Is there a way to automate it?

I am on Windows 11 and installed ImageMagick-7.1.2-30-Q16-HDRI-x64-dll. I am open to using other free programs if there is a better option.

I have almost no experience with command-line tools, so beginner-friendly explanations would be appreciated. I did try searching for resources which explain how to do this, but the results I got didn’t work and I don’t know enough to figure out why.

For example, one suggestion was to use the above command in the root folder but with *.dds instead of a specific filename, but that didn’t convert any files and produced the error message magick.exe: no images for write '-write' '*.dds' at CLI arg 3 @ error/operation.c/CLINoImageOperator/4952.