This functionality is available only for projects or scripts that use the Classic Agent.
You can start the Classic Agent executable program from the command line by:
agent [-p port]
The following option is available for the agent command:
Temporarily set network protocol to TCP/IP and port to specified <port>. For the Classic Agent, the default port is the value in the partner.ini file. If there is no value set in the partner.ini file, then the port is set to 2965. To permanently set a protocol and port, right-click the Agent window and select Network.
Port numbers may not be negative numbers or _D.