How to schedule commands to run after a delay or to execute periodically.