Run custom SQL scripts from SSMS Object Explorer context menus. Specify the script text, its name,
and the Object Explorer node from which it should run. Node name, current database, current connection string
and current server can also be specified in the custom script with keywords that
are replaced with their respective values at script runtime.
You can order the scripts shown in the context menu in the feature's Options.
Simply change the index and it will be sorted in the ascending order of that index.
Mark the script as External to run it via the command line.