switch_to_blog question

I've been working with XMLRPC and http://wpmudev.org/project/xmlrpc-Addons
and I've got a plugin (wp-e-commerce) set to autoinstall for every blog created.

My problem is it doesn't create the database files until you log into the admin panel. Is there an easy way to programically mimic login into the admin panel?

I've tried switch_to_blog($blogid); and it does not work.

Any help would be appreciated.

Thanks

-Brad