Thank you, that points me in the right direction. Now i modified the last part:
require('../wp-load.php');
foreach ($posts as $post) {
$published_id = wp_insert_post($post);
add_post_meta($published_id, "cp_extern", $Title);
and it imported one custom field of the last post. But where do i have to put the code so that it imports the custom fields of all 10 posts ?