Determine whether module is enabled / disabled I am trying to write a Drush script to enable a bunch of modules based on a hook. If it's already enabled, I would rather skip enabling that module.

Is there a way for Drush to return whether or not a module is enabled?
This code will list all non core enabled modules:

drush pm-list --pipe --type=module --status=enabled --no-core