This requires following the instructions in a standard checklist used when an engine is on fire or severely damaged. In that procedure, the pilot shuts down the engine and pulls a fire handle.