well I found that arguments are passed using $argv. But I can't seem to get this line to work correctly...
spawn ssh user@server {~/stuff/script $argv}
it is recognizing $argv as "$argv" and not as the argument that is being passed in
Is there anyway around this?