in reply to IIS (Internet Information Services)
This isn't very specific, but it may be a direction to look. I think that the Windows Scripting Host (WSH) allows you to do this. The normal languages for WSH are JavaScript and VBScript, but I think that PerlScript will also work.