Reaper Scripting for Dummies an add-on for BiaB
DAWs are much the same in what they can do but Reaper stands out because of it's scripting.
From the writers of WinAmp it's truly customizable.
Install https://www.sws-extension.org
Install https://reapack.com/
In Reaper menu Extensions > Reapack > Browse packages.. in Filter paste js_ReaScriptAPI
right click > Install > Apply

You can get Lua functions and scripting info with a simple web search.
Here's a simple script to print the current cursor position in the console.
File > Action > Show Action List > New Action > New Reascript...
copy and paste into empty script window > Ctrl+S to save and run.
This script will be in the list that you can select then click Run.
Code:
function print(value)
  reaper.ShowConsoleMsg(tostring(value).."\n")
end
cur_pos = reaper.GetCursorPosition()
print("Pos= "..cur_pos)




Let's learn Scripting in REAPER Ep00: Series Overview (with Leandro Facchinetti)

Let's learn scripting in REAPER Ep01: Reading Scripts Basics (with Leandro Facchinetti)
Let’s learn scripting in REAPER Ep02: Functions, Arguments, Returns & Variables
Let’s learn scripting in REAPER Ep2.5: OnCommand functions, Mousewheel/CC Scripting
Scripting tutorial for beginners (With Leandro Facchinetti)
Scripting tutorial for beginners Pt. 2 (With Leandro Facchinetti)
Scripting tutorial for beginners Pt. 3 (With Leandro Facchinetti)

https://www.extremraym.com/cloud/reascript-doc/ (this is a good source if online ?)
https://www.reaper.fm/sdk/reascript/reascripthelp.html
https://mespotin.uber.space/Ultraschall/Reaper_Api_Documentation.html

BiaB related scripts here https://stash.reaper.fm/u/ReaTrak?u=u

Demo script below instantly injecting same tracks sections in BiaB into Reaper tracks as wma/wav/m4a/aiff.
Once PG write the current track data to a txt file \bb\Data\BBoutput.txt this will work on both Win & Mac.