After many studies, I found a way. you need to use the old javascript api with admin.createApplication to create a new application through a script, then you can use the old rest api (no luck with the new one) to set "appProperties" accordingly. like icon, iframe url etc.
source share