 Later that year , Captain Sheldon gave Roddenberry an additional position as technical adviser for a new television version of Mr. District Attorney . Having spent the intervening years dissecting any scripts he could get his hands on , and comparing them to the television output , Roddenberry advised the head of the studio 's story department that he could write scripts as good as the ones they were using . He submitted his first script on October 22 , 1953 , under his pseudonym " Robert Wesley " . It went into production as episode 9b , " Defense Plant Gambling " . On December 1 , he made a further request to the LAPD for a second job as a free @-@ lance writer and adviser . This time it was approved . He later said , during the production of the second season of Star Trek , that the pseudonym was used after a fortune cookie revealed a message saying : " A change of name will bring you fame . " 
