@Kitty73732747 You also have to use your common sense. Look at the flight plan that is programmed. If there is a turn or angle in the magenta line greater than 90°, understand and realize that the aircraft cannot turn that sharply. The Microsoft flight planning system has many issues with it that are not present in the real world aircraft. In the real world, procedures have much Smoother turns programmed in which are missing from the simulator.
For example, the LAX1 departure out of LAX is supposed to do a 180° turn and overfly the airport after departure. In the real world this is programmed as a smooth but sharp turn back toward the airport while climbing. In Microsoft flight simulator, the departure procedure shows a sharp angle of about 150° which is impossible to do. I always fly that departure manually until the aircraft is headed back toward the airport. Then I do a direct to LAX before turning on the auto pilot. You have to use common sense in the simulator.
You can’t just turn on the auto pilot and expect everything to work perfectly