Even better, if you have access to create the db role, you already have all the access that does not require a thorough login with a password. Let the second script run under the same user as the first, but include the following line to switch the user:
set role my_new_user;
Where my_new_user is the name of the role you want to run.
If you only split scripts because of different logins, then with this they can go to the same file and just switch the role in the middle.
Note: Otherwise, you are not creating a database and a new superuser role, it can be a little more complicated. If so, you need to create a new role using:
create role my_new_role ... ADMIN my_role;
Where my_new_role is the role you are creating and my_role is your current user. Then, when you are done, simply:
revoke my_new_role from my_role;
source share