Moonraker was made in the late 70s, but those were not NASA's shuttles they were owned by a corporation. The earliest I'm aware of NASA's shuttles being used was in 1980. G. Harry Stine, writing as Lee Correy, wrote "Shuttle Down." This appeared first as a 4 part story in Analog from December 1980 through March 1981. Later that year it was published as a novel by Ballantine/DelRey. The story involved the shuttle Atlantis being forced down by a failure after launching from Vandenberg.
https://en.wikipedia.org/wiki/Shuttle_Down