All predefined script commands must be terminated with a semicolon. Parenthesis and commas between parameters are optional. Parenthesis are also optional for commands with no arguments.
Some examples are
ftpconnect "127.0.0.1", 21, "anonymous", "anon@anon.com"; #command without parenthesis
ftpconnect "127.0.0.1" 21 "anonymous" "anon@anon.com"; #command without parenthesis and commas
ftpconnect("127.0.0.1", 21, "anonymous", "anon@anon.com"); #command with parenthesis and commas
ftpdisconnect(); #command with no arguments with parenthesis
ftpdisconnect; #command with no arguments without parenthesis