Have you tried interactively importing with the wizard? If it allows you to change settings and succeed, it will also write the script as a table property that you can use independently.
Can you share an example of one of these workbooks? Even a partial sample without identifiers?