For that specific issue, you don't need the source code, you need the dealer diagnostic/programming toolkit. Hyundai GDS, BMW ISTA, each manufacturer has their own but I believe they're mostly reskinned and customized 3rd party products (I think Mazda & Ford have a shared toolkit).
These give you everything from the service manual (detailed info on how to do any repair operation, with steps and photos), diagnostic code scanning and guided troubleshooters, and access to the car's electronics for putting ECUs into service mode (like the electronic parking brake) or reprogramming them with updated firmware (which is complicated and you probably don't need to do it). The service steps will interface with the car's ECUs - if you need to change the transmission fluid, the software will prepare the transmission, help you get it up to temperature and maintain that temperature, and then reset the calibration of the transmission at the end. And it'll show the technician each mechanical step they have to do along the way. Very advanced stuff.
You can generally get this software a normal person, but it's a expensive subscription:
https://hyundaitechinfo.com/
https://bmwtechinfo.bmwgroup.com/
You can usually find cracked versions online, but recently they've been getting more and more locked down.
As for your battery replacement thing, there are 3rd party phone apps which can do it. You'll just need a compatible OBD adapter. I don't know what it is for VW, but for BMW BimmerLink gives you diagnostic info and lets you reset the battery, and BimmerCode lets you change some config options in the car ECUs to enable some useful small QoL features. I'm sure there is similar software for VAG cars.