Any child, unlawfully excluded from public school instruction, in this Commonwealth, shall recover damages therefore, in an action on the case, to be brought in the name of said child, by his guardian or next friend, in any court of competent jurisdiction to try the same, against the city or town by which public school instruction is supported.