Just use -p and the rest as specified. The execution with the script will interrogate you with the password securely.
Affiliate Disclosure: a lot of the back links to goods on Getorskip.com are affiliate one-way https://www.ralantech.com/mysql-dba-support-services/