to up the memory limit for drush 9

if (PHP_SAPI === 'cli') {
  ini_set('memory_limit', '512M');
}