For example; I needed the version of a project so I created a Windows batch script in combination of SQLite (https://www.sqlite.org/download.html):
ECHO get version..
@ECHO OFF
FOR %%? IN (*.mpr) DO (
for /f %%i in ('sqlite3 "%%~f?" "SELECT _ProductVersion FROM _metadata"') do set VERSION=%%i
)
I'm sure you can use SQLite within any programming language