Hi,
I'm afraid you are incorrect, the MySQL admin password is the same as it ever was, the contents of /etc/psa/.psa.shadow. Your scripts should not need any changes.
I'd point you to the relevant KB article but I can't find it right now, just try your script unchanged and it should work fine...