Hi Beau,
You mentioned permissions for users need to stay in place but do you need this process to be made under some other account than administrator's? Couldn't the reason for login page showing up simply be caused by the fact that you are maybe trying to execute the actions under a public user account?
Also, if you could place a code snippet with what you are trying to accomplish here, it would be quite helpful, too.
Thanks.