Hello,
To write the profile with respect to time, you can try using execute commands at specified intervals of time. And while importing the profile data ensure that the co-ordinates of the outlet of initial domain and inlet of the secondary domain are same. Use inverse interpolation and use components in inlet BC instead of just velocity magnitude as a whole. Would be good if you could share the screenshots of contours at inlet, outlets and mesh.