You are confusing ASH and CLI scripting. Your script could be as simple as a text file containing the following lines:
outfit Farming
familiar Leprechan
adventure * Giant Castle
For a much more complex script, check out the aftercore farming script, which farms, does bounties, and eats and...