Well, my reply was wrong. In fact this functionality has changed in Moodle 4.4.
To add cohort enrolment in Moodle 4.4 you must have the following fields in your CSV:
- enrolment_1: set to "cohort".
- enrolment_1_cohortidnumber: set to the ID for your cohort. This is the value of the Cohort ID field and may not be a number (but must be unique).
- enrolment_1_role: set to "student".
So if you set the Cohort ID for BVoc I Diploma in Accounts and Taxation (Demo) to "BVoc 1":

Then prepare a CSV file:
shortname,fullname,category_idnumber,enrolment_1,enrolment_1_cohortidnumber,enrolment_1_role
vcdddat,BVoc I Diploma in Accounts and Taxation,vcd,cohort,BVoc 1,student
When you upload this the course will be created with enrolment for the cohort:
