If you want to get directly into this job, you may have an advantage if you have writing and storytelling experience from another field like journalism, advertising copywriting or acting.
You'll normally start by coming up with your own screenplays and ideas, and trying to sell them to agents and producers. Once you've had some work accepted and started to build a professional reputation, producers might then commission you to produce scripts for them.