Slicers can append user supplied GCode scripts/routines to the beginning of a print job to perform many useful functions.

In the Polar Cloud, the G-Code scripts are under PRINT SETTINGS on the Build Plate. Go to the G-Code tab and edit the text boxes. If it's not letting you save the config, duplicate the config first.