I am trying to write a script that is executed before Windows is booted on my Computer.
I have already developed a simple Linux bash script to accomplish this, but I would like to improve and take it further. The problem with using a Linux script is that it adds quite a bit of time to the boot sequence as Linux has to start/initialize then execute it, which is obviously undesirable.
What I would like to do is write a low-level program (assembly? machine code?) which BIOS would read, execute, and then continue to Windows(or any other OS).
Is there a way to run scripts in that fashion without the presence of a OS and if so what language or resources should I consider.