Set default admin password in script

I had trouble setting the default admin password in a .rsc config file. Here is the solution I found:

/password old-password="" new-password="NewPASSWORD" confirm-new-password="NewPASSWORD"

The key was not having the script in a separate line, I tried using the MilliScript tool, but it broke the script into different lines. I am new to RouterOS and couldn’t find this solution on the wiki or forum, so I thought I would share.

I will be configuring 300+ MikroTik Groove devices, and I do not want to manually enter the new password each time. I want to configure the devices with a password, the /export command did not include the password (understandably so).

Hello can you that also with username?
I will add more than one user with different passwords
This for my 15 routerboards