Calling the Drupal API on the command line