You can use the commands in the Connect library to easily build applications that communicate with STK. For more information on a specific type of command, see:
STK 11.2.1 Programming Interface