Try setting (for testing) a simplified PATH in a CMD session
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%
set PATH=%PATH%;/path/to/ThreadScope/bin
Meaning: you set Git first, then ThreadScope in the PATH: see if both are running better in that new context.