Added: implementation for execute in session (given a command and optioal args)