Automation tool that models a user's actions on a terminal