Enhancing Microgrid Resilience with Advanced EMS Strategies