Supervisory controls to automate plant functions