Read variables from console

Hi all.

My idea is to create an interactive script that would ask me the ssid that i want, and it should change it.

My problem is that i don’t now how to read variables from console.

Is it possible?

I now that the auto-before-reset script has it, but i cant find the code.

Kindly regards and a good weekend.

Jorge