Moray used his Freemasonry
First to contact the speculative thinkers who had formed lodges in London.
Second to use the ideas of the Scottish Masonic Schaw Statues to organise his new society in a way to avoid the distractions of religion and politics
Third to take the idea of studying the hidden mysteries of nature and science and give it practical application