Script for changing spelling language

Hello!
I have to use spellchecker for multiple languages, but changing through MacOS settings is too long and complicated.

What would be apple script or terminal command to change Spelling language in MacOS Ventura →