Just use -p and the rest as specified. The execution of the script will interrogate you to the password securely.
MySQL is open up source, which suggests anyone can obtain MySQL program from the net and utilize it with https://www.ralantech.com/mysql-dba-support-services/