Let's go down a different track...Since the agent starts successfully from the command line when you "switch" but fails when you run as a script tells me that the problem is with the method ...
You cannot submit a managedcall using the ftCreateTransfer command. managed calls are only submitted by resource monitors. I am surprised that you got this is submit at all. The schema validation f ...