execute Make sure you quote the password with single quote in order to escape special characters phantomjs --config=config.json main.js -t login -u 'EMAIL' -p 'PASSWORD' -c COOKIE_JAR