[SOLVED] How to configure and Item to execute a basic rules and any command line console from UI

Yes, see this.
Write the java script in the html to send the value to a string item that triggers a rule that sends the state of the item as a command to console with the executeCommandLine action!