You must use it with the entire path like /opt/plesk/php/7.4/bin/php /var/www/vhosts/mymauticinstall.com/app.mymauticinstall.com/bin/console doctrine:schema:update --force
Your command will vary depending on your servers OS. Mine is Centos 7 with Plesk panel so they require the format in the example.