Run SQL scripts under an impersonated user