There are a lot of ways to do most things in Max. This is one of them.
The method you use depends on the geometry. Here is one way you can try. If you have two rails on cross ties you can make a box that is 27mm wide and put it over your track. Then group all of your track parts but leave the 27mm box separate. Now scale your track until it is the same size as the box you made. You may have to move the box over on top of the track group a few times. As you drag the Scale spinners if you hold the 'Alt' key, things will scale more slowly for better precision. Just keep playing with it until the part of the track that needs to measure 27mm is touching the outer faces of your box.
Now that's a quick and "dirty" way to do it. There are more precise and precision ways to do it but it sounds like you are a new user so I wanted to keep it very simple. If this does not work, write back and get more suggestions.
Also, read the Max 'Help' file. It's very good these days and is invaluable. Even as I've used Max for 23 years now, I still use it frequently. It can really help you with basic things like this.
Rob Holmes

------------------------------------------------------------------------------------------------------------------------------------------
3ds Max (2023-2025), V-Ray 6.2, Ryzen 9 3950-X Processor, DDR 4 128MB, Gigabyte Aorus X570 Master motherboard, Sabrent Rocket NVMe 4.0 M.2 drives, NVidia RTX 4090, Space Pilot Pro, Windows 11 Pro x64, Tri-Monitor, Cintiq 13HD, Windows 11 x64
------------------------------------------------------------------------------------------------------------------------------------------