woocommerce wc_create_order(); is creating multiple orders instead of one?

thank you mmm it worked i just missed an “

    if (isset($_POST["myBtn"])) 

      {  $order=My_create_order();

      }

<?php
add_action('init', 'My_create_order');



 function My_create_order() {


  global $woocommerce;

  $order = wc_create_order();



return $order;
}

tech