"Trail" is set of Pro/ENGINEER commands that correspond to its user interface. Essentially, it's a log of Pro/ENGINEER session that can be re-executed.
Note:
Pro/ENGINEER routinely generates a separate trail file for each session in directory it was started from (IServer::RunDir() if you started it through COM server), so you can use these trail files as template.