If i do get your issue right, you want to extend the schema of the 1IM database? If that's correct, then there's a tool for that dedicated use, called "Schema Extension" shipped with 1IM.
I want to create a set of tables which 1IM uses for custom target application in other middle-ware(Duplicate table) application. I will integrate my middle-ware with Legacy applications.
No, there is no script to create "duplicates" of 1IM tables in external systems. Why wouldn't you integrate directly with the legacy application instead of "proxying" through a middleware?