I've been trying to find out how to do it, but most of the stuff I found were really outdated, by around 5-7 years, or it just wasn't clear. So, I'm trying to find a way to launch, say 1.8.9, without actually opening the launcher, but by running some .jar or .dll or something like that in the AppData/.minecraft folder. Is there some command I can put in command prompt with some arguments to run a Minecraft version I want?
So, I tried that and found the lwjgl website. I downloaded the latest version of it for windows x64 and then put it in the Minecraft 1.16.5 version folder. When I tried to run the batch file again, it still gave the error.