How to roll a cylinder on a plane?

There is a plane with width and height 10 and there is a cylinder on the edge of that plane.

I want to know how can the cylinder roll from one side to another side of edge.

How should be the script?

Is there any sample js code?

If you want to do this with physics, you need to put a rigidbody component on the cylinder. Then, from the script, you can give the cylinder a push using rigidbody.AddForce:-

rigidbody.AddForce(forceVector);

The force vector points in the direction you want to push the cylinder (in world coordinates) and its length/magnitude is the strength of the force. How you determine the force depends on the control system of the game.

Thanks for help, it works now