Script to run Winbox with custom settings

Hi all, I am really new to community so I am sorry if my question is not related. I would like to run Winbox with predefined settings if possible. I have got the device on fixed IP that i am using for testing speed of connection to other devices. But every time i turn on the PC i need to run Winbox, bandwidth test, set IP of device, TCP protocol etc, its waste of time. Is there a way i can automate these with script? Thanks for the help for newbie :unamused:

Connect with SSH, or if you must, open the ‘Terminal’ window in Winbox.

From your computer paste this into the prompt (save it in a text file on your desktop),

/tool/bandwidth-test direction=both user=e300 password=yoursecretpassword duration=1d00:00:00 protocol=tcp address=192.0.2.133

Many thanks, that works.