bcdedit /create /d "Windows 10 on D:" /application osloader This returns a GUID like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx . Copy it.
Then set the partition and OS path:
Note: Easier to use GRUB. But for direct boot: add boot option windows 11
bcdedit /enum firmware Scenario A: Add another Windows installation (e.g., Windows 10 on D:) bcdedit /create /d "Windows 10 on D:" /application
bcdedit /create /d "Ubuntu Linux" /application osloader bcdedit /set GUID device partition=G: bcdedit /set GUID path \ubuntu\vmlinuz bcdedit /set GUID options "root=/dev/sda3 ro" add boot option windows 11