Assign each tab a different “object” name (i.e. XXXX ) in the inspector.
Then in the script after go to the layout.
Then use: Go To Object [ Object Name: XXXX ]
First you would need to give each tab an object name. At the beginning of your script you can store the name of the tab you are on in a variable. At the end of your script after you use go to original layout, use a go to object script step with the variable you stored.
Set Variable $Tab = Tab_Reports
Do script Stuff...
go to layout = original layout
go to object = $Tab