Function echoExecutedCommand