Look into drupal_execute, although I often tend to create my node object explicitly and go via node_save, depending on the task.
Hi, I have a batch of nodes need to be created from code, which function should i use as an entry? thanks!