PEST analysis (political, economic, socio-cultural and technological) describes a framework of macro-environmental factors used in the environmental scanning component of strategic management. It is part of an external analysis when conducting a strategic analysis or doing market research and summarizes the different macro-environmental factors to be taken into consideration. It is a strategic tool for understanding market growth or decline, business position, potential and direction for operations. Source: Wikipedia https://en.wikipedia.org/wiki/PEST_analysis
For a comprehensive overview of how to create a PESTLE analysis, see the PESTLE Strategy Guide.
Here are several templates you can use to document your research.