JSFL / Commands starting point

Maybe I just such at searching. Can anyone tell me where I should start for researching the following.

I want to create a “command” (JSFL i think) that has a stored AS in it so when I run the command it will type the AS in the AS panel.

Any cool links or such