Execute command in the right prefix