Can you do all of those things from the command line? Do you know the keys to press to do those? You can adjust the code Tharwat posted to suit your needs. To add additional options to the code, enclose each typed set of keys within quotation marks ("). For Annotative, you would add this to his code.
Code:
(command "_.-hatch" "P" "Solid" "AN" "Y" "\\" "")
Try the -hatch command to see what command line options are available. To allow for user input, use the pause option in place of your request for user input.