Unfortunately, you made a painful way to generate scripts. You must create one script procedure for all procedures by right-clicking on the database in SSMS, choosing "Tasks โ Generate Scripts".
However, if you do not want to go through this process again, open the cmd shell in the folder and remember those old days of batch files:
for %f in (*.sql) do sqlcmd -i %f
That should do the trick! You can add other parameters to sqlcmd if necessary (e.g. login, password, server name, ...). To see the list of switches, just follow sqlcmd -h.
source
share