1. A method for controlling automated movement of an earthmoving machine having a plurality of links connected at joints that are operable to move concurrently based on commands generated using at least one script, each script including at least one variable parameter defining a movement of the machine, the method comprising the steps of: determining at least one desired outcome from a number of desired outcomes; measuring conditions in the machine's environment pertaining to each desired outcome; determining a candidate value for at least one variable parameter from a number of potential candidate values using a learning algorithm before executing the script in which the variable parameter is used; and predicting the desired outcome of the candidate value prior to executing the script in which the variable parameter is used with the candidate value being selected based upon the determined desired outcome.