Function calls over USB without cloud connection

I see now the solution to my problem is to use serial to issue commands which are executed by the loop application.
This seems like a good way to go to enter commands directly without the cloud connection.
There seems to be quite a bit of info on this to get me started here: Serial Tutorial