Item #5 is the way lubricator. Is it air powered? My machine's got an electrically powered way lubricator - I've never seen one like yours.
Item #7 is the air valve for the air powered way lubricator. The control turns it on once in a while just long enough to give a shot of way lube. I have the same air valve, on my machine it's for the air supply to the mist coolant.
Item #6 is the air pressure switch. I've got exactly the same one. If you take the cover off you'll have both NO and NC terminals, and an adjustment for the setting. I think the wiring between #6 and #7 is just for convenience, and the wire from #7 just passes through #6 to go into the electrical cabinet.
Item #4 looks like the pressure regulator for #5.
Item #3 is a block of electrically controlled air valves. One probably controls the brake. The others, I can't say what they do.
Item #1 & #2 together are the main air filter/regulator/lubricator. The air tube attached to the brass 'T' fitting carries unlubricated air. Do you have a mist coolant system? That's what the unlubricated air goes to on my machine. The air fitting on the outlet of the lubricator has, well, lubricated air. On my machine this goes to the toolchanger and the drawbar cylinder, presumably to the brake on your machine.
I'd think you could just leave it all be, and reuse it all. The electrical valves almost certainly work on 24VDC, and you could trigger them (from Mach?) to turn the brake off & on. If one electrical valve runs the way lubricator, you could just set up a timer to turn it on every so often to give a shot of way oil.