Who knows pgAdmin shortcuts to execute scripts in pgAdmin Query tool? Namely to execute whole query and execute current script.
Select the relevant portion and hit the F5 key in the SQL editor of pgAdmin. OR use the "Execute query" button (green arrow) in the toolbar. If nothing is selected, the whole script is executed.