There's an example here:
While that loads a PNG, you can change it to load a ICO and it still works. The script package includes both PNG and ICO images, so you can test it by changing this line:
Dlg.control("cat").label = Script.LoadImage("cat.png")
To this:
Dlg.control("cat").label = Script.LoadImage("cat32.ico")