Add call to PreCommandEvent when console executes command

signed-off-by: Snaipe franklinmathieu@gmail.com