Use of wp_insert_post and parameters

Check the docs at http://codex.wordpress.org/Function_Reference/wp_insert_post for the parameters to use with wp_insert_post

This function inserts posts (and pages) in the database. It sanitizes
variables, does some checks, fills in missing variables like
date/time, etc. It takes an array as its argument and returns the post
ID of the created post (or 0 if there is an error).

You run your function once in the context of a plugin, or worst case, in functions.php or in index.php and then remove it.