That's like asking how to replace an engine in a car. We can either give you VERY general pointers (open hood, remove engine, put new engine in, close hood), or we can do it for you.

We will not do it for you.

So, general pointers: Make a menu file, make it interact with the script, customize script, debug.

Good luck.