Find and change module weight with drush

Run this in terminal

drush php-eval "drush_print_r(db_select('system', 's') ->fields('s', array('weight')) ->condition('name', 'some_module', '=') ->execute() ->fetchField())";

and then when you get the required modules weight, change it with

drush php-eval "db_update('system') ->fields(array('weight' => 5)) ->condition('name', 'some_module', '=') ->execute();"

In both replace some_module and weight number (in this example 5) with desired value.