Instead of running the command for plugin installation and then the command for activation:
sudo for dir in /var/www/html/*/; do cd "$dir" && wp plugin install elementor anywhere-elementor wordpress-seo wordfence contact-form-7; done
sudo for dir in /var/www/html/*/; do cd "$dir" && wp plugin activate elementor anywhere-elementor wordpress-seo wordfence contact-form-7; done
Can one combine both the install and activate to one command?