Besides learning some simple bash script programming, I believe the tool 'dialog' will be appropriate here.
I don't know for certain, but I believe raspi-config uses it. Or at least, using dialog will produce menus that achieve a similar look and feel.
There's some docs here
Hope this helps!