Thank you, very detailed description of process. I managed to do that.
For scripts yes:
For built-in functions: no
As I've understood, a) we create 16*16 Icon in PNG, it must have alpha-channel b) then put it into our Scripts Folder c) and finally we name icon file exactly as our script including its extension.