Write down the commands you need
Create a text file with the .cfg extension, such as legacy-settings.cfg. Use one command per line. Add echo legacy_settings_loaded as a test. Make sure the file does not end in .cfg.txt.
Find the CS:GO folder
Save the file in csgo/cfg inside the Source 1 installation. If you also have CS2, check the path in Steam so you do not put it in the newer game's game/csgo/cfg folder. Open the CS:GO Legacy console and run exec legacy-settings.cfg. Look for the test line and check the settings you changed.
Test the next launch
To run these commands at startup, add exec legacy-settings.cfg to your autoexec.cfg. Restart and check one setting without running the file manually. If the value differs, check the order in which your CFG files load.