Is there a way to execute scripts on command without logging in?

I’m wondering if there is any way to execute scripts or change settings on command, without logging in to the router?

I’m thinking of something along loosely along the lines of a port knock sequence, but instead of opening a port, it runs a script to adjust a bandwidth rule, or start/stop some sort of logging etc.

Obviously I wouldn’t allow anything critical to be done in a method like this due to the lack of security. But it would be nice if these things could for example being controlled by someone inexperienced without the need to have any software or need to authenticate. I could just tell them “knock these 3 ports in the web browser to restrict bandwidth to this group of devices”. Or perhaps there is another way to achieve this.

You can use the scheduler to do so automatically: have a look at the documentation https://wiki.mikrotik.com/wiki/Manual:System/Scheduler

If you need something more dynamically, I would suggest to have a look at Ansible Tower or AWX (the open source sibbling) and script it from there, then the connection to the MikroTik is handled by the AWX and your employee would just go in to AWX to send the commands by running a playbook you have created