Expect scripts work well for performing automated tasks without the need to learn shell scripting or the need for user input (such as, username and password). Expect is available for download for a variety of operating system flavors from:
https://docs.oracle.com/cd/E35328_01/E35336/html/vmcli-script.html
For UNIX users, expect scripts can be created and configured to run automatically using cron.