/system upgrade upgrade-package-source

Hello. I want to create a script to automatically configure my MT. I have a problem with the configuration of the automatic update:
/ System upgrade upgrade-package-source add address = 10.1.1.1 user = admin.
How to use a script to enter the password?

Of course, I can use the script from the / system package update … but then I can decide what I want to have a version of the software on the device and is not always the latest is the best.

It is impossible to do this using a script.
The only ways to configure upgrade-package-source is by copy-pasting to terminal or using the WinBox interface.
For more information, see: http://forum.mikrotik.com/t/script-adding-upgrade-source/23181/1

To add it using copy-paste, do the following:

/system upgrade upgrade-package-source
add address=1.1.1.1 user=user
password
/