Sorry, I don't know exactly if it's possible, but, I
think if it's possible, it would be hard to make the script "run" with IE, recognise (sorry if it's wrong writed) a donwload, "read" the info and pass it to your PSM...
But... it would be better to listen a second and more experient opinion...