You might need to rethink your entire premise here. Contacts from both companies could easily be kept in the same table. Unless the data is kept on physically separate systems that aren't on the same network, there are many strategies that can be implemented with FileMaker to keep the data in two separate groups and access permissions can also be set up so that a user who needs to see data for business #1 but isn't authorized to see data for business #2 can use the database to work with Business #1 data and yet cannot see any unauthorized data for business #2.
To explain while your script didn't work, your global variable $$name isn't given a value anywhere in your script. Unless some other action uses Set Variable to put a value in this variable, your script creates a new record, but the set field step is setting an empty field to an empty value which produces your new blank record.
Set Variable [$Name ; Yourtable::NameField]
Open File ("business two")
Set Field [Businesstwo::businesstwoname; $Name]