Is this command correct?

“C:\Program Files\darktable\bin\darktable.exe” --configdir C:\Users\darek\SynologyDrive\darktable --cachedir D:\darktable -d lua

and where is placed lua debug file in windows ?

Google says “C:\Users[username]\AppData\Local\Microsoft\Windows\INetCache\darktable\darktable-log.txt”. I do not have windows so I cannot check if this is correct, but maybe you can have a look there.