Wrong instruction on minecraft.net
There is a mistake in the instruction on how to disable the gui in the start.bat for the minecraft server on https://www.minecraft.net/de-de/download/server.
It says to disable the gui you simply have to append "nogui" to the start command. Insted of just entering 'nogui' it should say '-nogui'. Otherwise the console gives you an error/ the console closes immediately and the server cannot be started.