You can also query for it after the fact of creation, if you need to.
If you know some bit of the code that lives in your scriptjob, you can do:
get a list of all the scriptjobs (via the scriptJob command)
for each item
match some part of that text that you're looking for
pull the scriptJob # from that item and return