Test getting executable command with flags