For non-formal schools, the parent must obtain an ED visa first, then the children can apply for a Non-O at a Thai consulate/embassy outside of Thailand, then enter Thailand on that visa.
For formal schools (University), they should be able to process the visa for the kids in-country, but best to check with them first though.