Engine Fire checklist first.
Most memory items require 2 bottles with time in between during which you can gather information (CC, ATC, look out of window, fire service, tec.) and decide on course of action.
By the time you have gathered info you will know how severe the fire is and whether the bottle has put it out so you can decide whether to evacuate or not.