Using PowerBuilder.Application as an automation server involves these steps:
Define the objects you will access.
Build the runtime libraries for those objects.
Write code in the client that connects to PowerBuilder, creates the objects, and accesses their methods and properties.