Error when trying to enable users in Tier 2 environment after DB refersh

I have this error when running the script to enable users after DB refresh on VM using SSMS.

THe environment has been upgraded to version 10.0.19

Msg 208, Level 16, State 1, Line 4
Invalid object name ‘userinfo’.

What script are you running?