Shatner has written a series of books telling his experiences playing James T. Kirk and being a part of Star Trek . He has written a series of books chronicling his experiences playing Captain Kirk and being a part of Star Trek and has co-written several novels set in the Star Trek universe .