Schedule or automate a restart of an ES adapter

Would anyone like to share how they scheduled or automate a restart of an ES adapter?