Sounds like you can use a macro on the OS level or a plugin like greasemonkey/tampermonkey.
Sometimes you can even do these with pure curl. POST the login form, get back the necessary cookie or token, then request the download URL, if it's easily predictable.