Encoding command before executing it