not sure on item 1.
but for 2.. its //set %variable value

remember, from the command line, the interpreter needs 2 forward slashes to do its thing
and mirc uses /set its not exactly like c code