You can try the sample code below:
When calling a macro inside a Macros folder put "" around the macro and it will play it. Also you can add timer for that macro like this.
This means the macro has maximum 60 seconds to complete.
When playing the macro which is declared as variable inside the .js file then you do it like this
test +="SET !ERRORIGNORE YES "+"\n";
test +="URL GOTO=www.google.com "+"\n";
And that is all you need to do.
Note: This is my sample .iim file name as test. In you case it would be different.
Hope this is helpful!!