You can add your own commands. The command execution part is a function that passes command line arguments with argc and argv. Please refer to the example of the main function using command line ...
// Arduino software without disclosing the source code of your own applications. // To purchase a commercial license, send an email to license@arduino.cc. "github.com ...