If the image(s) to be extracted contain graded transparency data and an AND mask, write the AND mask into the fifth channel of the output PAM file
winicontopam -andmasks path/to/input_file.ico > path/to/output.pam