This post shows how to login to an EPiServer site programmatically, for example to execute a scheduled job as a specific user.
This post explains how to create a scheduled job in EPiServer CMS.