Execute command correctly