I had drupal_execute working under Drupal 5.x, but am having trouble getting it to work under Drupal 6.
Under 5.x, drupal_execute worked like this :
$node = array('type' => 'mynodetype');
drupal_execute($form_id, $form_values, $node);
Under 6.x I'm trying this :
$node = array('type' => 'mynodetype');
// a number of lines to setup form_state
drupal_execute('mynodetype_form', $form_state, $node); // this inserts node
I also tried to simply copy and past the sample from the Drupal 6 API docs but this didn't work :