@ashish_mishra1 ,
In AEM, there isn't a built-in configuration specifically designed for scheduling automatic restarts. However, you can use a python script. Same python script will help you to start and restart the instance.
AEM_PATH = "/path/to/aem"
AEM_JAR = "aem-author.jar"
def start_aem(...