I see. This script calls the "usymtool" executable which Unity dropped at the root of your Xcode project dir. Actually it dropped it in two versions, "usymtool" for the case where you're running an Intel Mac, and "usymtoolarm64" for the case you're running an Apple Silicon Mac. The only problem here is that they don't provide "usymtool.exe" for the case you're running Windows... And since these are precompiled executables, they're a sort of "black box" to me. It's hard to know what they do exactly.
Ah, I found a Xcode project who has them. Both variants weight a whopping 16 megabytes each : they're not exactly "small utilities". If they'd have been below 1 Mb I probably would have spent some time decompiling one. But seeing the big picture of a 16 Mb executable would take weeks. Hold on...
They've left debug symbols in. Very interesting. So it might be possible to decompile them, after all :) I'll give a try and post back.
*edit* These things are written in Go (golang.org). They pick up stuff on the hard disk, compress it, open a connection to the Google Cloud servers, set up TLS (there's a whole bunch of crypto functions in there) for secure transmission, and upload a form and the compressed data. Since it's written in Go and this is a highly portable language, it should be a no-brainer for Unity to produce a Windows variant of this utility. Actually, I wonder if they haven't done that already. Please do a file search in your Unity installation and look for a file called "usymtool.exe". If you find one, let me know where it is and what's its size. Some websites say that it could be located in C:\Program Files\Unity\Hub\Editor\<Unity version>\Editor\Data\Tools. Is it the case ?