Ok, after a bit of research and programming,
going through master doesn't allow the $track wildcard
In fact, the best way to render selected tracks through master is to use Region Manager (no script needed).
Just create a region that has the length of the desired render, and select track within the region manager it should work like expected
No script needed !