Having the following diff tool settings:
[difftool "edp"]
cmd = \"C:/Program Files/ExamDiff Pro/ExamDiff.exe\" \"$REMOTE\" \"$LOCAL\" //nh
prompt = false
trustexistcode = true
in .gitconfig results in a working diff tool from the console
git difftool or by right clicking in VS Code in the pending changes window.
How ever running from Visual Studio 19's integrated pending change windows: it does not work.

It seems that arguments are not properly quoted???:
[difftool "edp"]
cmd = "\"powershell.exe\" \"echoArgs.ps1\" \"...Bla bla bla...\"
[diff]
tool = edp
guitool = edp
prints
Args 1: '...Bla'
Args 2: 'bla'
...
You can replace powershell with C:/Program Files/Git/bin/bash.exe, the same happens...
How can you fix this absolutely stupid freaking backslash/quotes escaping mess happening?
Update: VS 19 installes the following command:
[difftool "vsdiffmerge"]
cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //t
keepBackup = false
Which is basically very similar to mine...??
Any insight is very appreciated.