How to set the Default Icon programmatically?

How do you set the Player Settings → Default Icon programmatically?

Check

and switch to scripting.

Mind

So you won’t find default icon in scripting section.

I would say, you want to use SetPlatformIcons