add agent forwarding to script command