If you mean you want to add the cohort enrolment method to courses which already exist, there is unfortunately no way to do this in bulk. The course
upload tool only supports adding manual and self enrolment methods to courses (see Tracker
MDL-73838) in bulk.