How to control robot from command line or python script (from outside) in isaac sim

How to control robot from command line or python script (from outside) in isaac sim. What is the best practice please help.