Different HyperWorks applications have different methods for launching the Tk Console (tkcon), also called the command window. For HyperWorks Desktop products, use Tools > Command Window…. For HyperMesh, click View > Command Window.
Once tkcon is open, Tcl/Tk commands, as well as application specific Tcl API commands, can be entered directly.
Tcl scripts can also be launched from within tkcon. The source command is used for this purpose: