How allow drone to fly autonomously

Hi all, does anyone know how to send a command to the drone so that the it will be able to fly for example, fly right, left, forward and backward by itself?

What do you mean by send a command? Sarcastically and jokingly I would say with the radio transmitter :), but seriously DroneDeploy is a software platform that allows you to plan missions for autonomous flight. One thing DroneDeploy doesn’t have though is a standard waypoint mission. These can be done in DJI Go. Personally I use Litchi. It is a one-time purchase of $23, but is ALLOT more versatile and also has a web interface that you can plan from in addition to the mobile app.

Right-Left-Forward-Back maintaining a north heading.

You might be asking for something like the LItchi app.