"Before loading the main operating system" - that means you'd need to install it in place of the bootloader, or chained from the bootloader, and then execute Windows afterwards.

You might be able...