microsoft has a habit of changing the download url regularly so automating it gets annoying. my kid has moved onto java so i've just left the bedrock server shutdown.
if you really want to run a java server outside docker and you're comfortable with bash scripts, i can post mine here. but one of the docker builds is going to be the simplest way to get started with it.