• You'll need to modify your SSMS settings.

    Go to Tools -> Options and in the left pane choose SQL Server Object Explorer -> Scripting.

    In the scripting options go to the "Object Scripting Options" section and set the "Include IF NOT EXISTS clause" to False. The dynamic SQL thingy comes up when this is set to True.