You have to us drush_invoke… You have to us drush_invoke_process() becaus drush_invoke() doesn't exist anymore -> https://github.com/drush-ops/drush/blob/master/includes/command.inc Reply