Command Files
While HyperWorks Desktop is open it generates a Tcl file named command.tcl. This file is created at the start of a HyperWorks Desktop session if it does not exist. If the file already exists, HyperWorks Desktop adds the commands for the new session to the end of the original file.
*createmark elements 1 "all"
*deletemark elements 1
Those commands can then be used to create a new command script that performs an automation, or to recover previously performed steps.