All this is assuming you can still boot into Windows 11/10 in a regular way. If you cannot, the only way is to use a bootable USB drive. You can then use the advanced recovery. Reset Windows Format ...
If there are multiple drives installed in the computer, then it can create confusion as to which drive has a Bootloader. This scenario usually happens when Master Boot Record is on the wrong drive.