Mission Specialist (MS) was a position held by certain NASA astronauts. Mission Specialists were generally assigned from the Astronaut Office pool to a limited field of a specific mission, such as those related to medical or engineering experiments.
Other functions on board were Pilot, Flight Engineer and Mission Commander. Some Space Shuttle missions included personnel assigned as Payload Specialists in addition to standard Mission Specialists. While Payload Specialists were selected for a single specific mission, Mission Specialists were selected as astronauts first, and then subsequently assigned missions as NASA needs dictated.
Mission Specialist is abbreviated by NASA as MS.