Before using any of the LispWorks Automation APIs, you need to load the module using
(require "automation")