you access menu by moving your mouse to the top of your screen. you access consolr by pressing SHIFT +`
you can write a script in the form of
bind [key] "[function]"
or more complicated
set [name] "[function]"
(repeat functions, subdivide functions)
bind [key] "vstr [name]"
you shouldn't use scripts to subsitute combat, but for facillitating setups or controls (names, models, say commands, etc)
more info look here