Edit global application command

Edit a global command. Returns the updated command object.