Within R statistics this can be achieved with the chromote package starting version 0.5.0.
R
chromote
0.5.0
https://shiny.posit.co/blog/posts/chromote-0.5.0/
Example within R:
chromote::chrome_versions_add(135, "chrome-headless-shell")