From “Choose Objects” step of wizard, select “Script entire database and all database objects”. Click Next Button.
From next step, check “Save Scripts to a specific location” and “single file” radio buttons. Also, select file name and path where you want to save generated script. Click at “Advanced” Button.