List of all domain for script you can get, for instance, from the "domains" table in plesk database.
Something like this should get the job done in one command:
mysql -Ns -uadmin -p<plesk_admin_password_here> psa -e "select name from domains" | awk '{printf("/usr/local/psa/bin/domain_pref --update %s -overuse block\n", $1)}' | sh