The best way to handle this would be to create a batch file that contains all the commands. tabcmd login -s http://localhost -t site -u username -p p@ssw0rd! . Open the workbook and click OK when prompted to log in, you'll get an error and .