Let's use your computer environment with WSL(GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)
and LilyPond(Linux)! [Preferably TeX-system, too.]
---- The WSL environment for ``Windows 11'' is a seamless combination of windows OS and Linux OS.----
See==> m(_ _)m [Windows & Linux(on wsl) ]
Example(Sheet and midi=mid)---by LilyPond ver2.24.0.--- on Windows and Linux)
Dpwnload files; This web-page's bwv1008-lys.tar.gz(<7,250bytes)
----
Running; >run--lily bwv1008-s or > lilypond --pdf bwv1008-s.ly (Windows) $ ./run--lily.sh bwv1008-s or $ lilypond --pdf bwv1008-s.ly (Linux) ----