What happens if you go to http://newserver/newpath/copyorders_multiple.pl?refID=somevalidrefid
how did copyorders_multiple.pl get on/to the new server
Have you checked the executable settings on copyorders_multiple.pl
how does copyorders_multiple.pl deal with refID=".trim($license), how are you sure that any required resources or datasets needed by copyorders_multiple.pl are also on the new server?