Just use -p and the rest as specified. The execution with the script will interrogate you for that password securely.
MySQL is open source, which suggests any one can download MySQL computer software from the world https://www.ralantech.com/mysql-dba-support-services/