That print object returns the string, but doesn’t actually send it to the console. Try injecting the console logger (logbox logger that send to console) instead. Look at the packageservice for an example. There should also be a print buffer object which is what commands get, but I’m on my phone right now so I can’t look up the syntax.
Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5