sqldbpool.com
How to generate script using SSMS GUI?
You can generate script of GUI functionality by clicking below high-lighted option in the image. It will give you all the below options.