Read up on some tutorials that teach the basics.
Then start off with little things, like making a command that prints "Hello, world!"
As you become more comfortable with coding, gradually do more difficult things.
If you need any help, search the forums first.
If you can't find what you're looking for, post and someone will point you in the right direction.