Hello Employer,
I would like to review the script that you have along with a sample CSV file that you are trying to import and the URL of your store. I have developed many Import script for my clients across the globe and even I have fallen for similar kind of issues in past so, I have the complete command on this kind of scripts.
Looking forward in anticipation to your response.
Warm Regards,
Abhi