Commanding a cross track error

Can I command a cross track error using a script.

I am dropping a payload and attempting to compensate for wind drift by commanding a cross track error.

Example: If the prevailing winds will cause my payload to drift 30 ft to the right of my route, can I command a 30 ft left cross track error to correct for wind drift?