The main function of a pressure regulating skid is to control the pressure of the fluid or gas by adjusting the flow rate through a series of valves and other control devices. By carefully monitoring the pressure levels and making necessary adjustments, the skid ensures that the system operates within the desired pressure range.