So if I understand your query (and there's the definite possibility here that I don't), you're running IBM Domino Server, and are seeking to migrate this to Microsoft Windows Server and Exchange Server? (AFAIK, Lotus Domino Server does not operate on OS X nor on OS X Server, and Exchange Server definitely doesn't.)
Microsoft has (had?) some Domino migration documentation, and StackOverflow has a discussion of extracting Notes Storage Format data under Linux. I'd suggest checking around over at the Microsoft web site for details and discussions.
If you're running the IBM Notes client on OS X and accessing the Notes Storage Format (NSF) files via Java or LotusScript or maybe via an Microsoft Office Excel export, then you'll end up having to do a little debugging if it's local code, or you might want to check with whomever provided the script if you've downloaded this script from somewhere. There might be a newer version of the script available, for instance.
If you're looking for somebody to debug an existing script that's stopped working (maybe due to some Java security update, or some other factor?), or to create a new migration script for you (beyond what Microsoft and others might have available), then the Apple Support Communities probably isn't the best forum to ask; this is the first Domino question I can recall being posted here. The best forum will probably be one that targets Window Exchange Server users, if that's where you're migrating.