Running scripts from the command line issue

I am currently able to run scripts from the command line while logged into the mac using RealVNC. However, after logging myself out of the mac and SSH’d in using PUTTY, I get the following errors when running the same script from the command line. I see that it is looking for a WindowsServer but shouldn’t I be able to run tests without being logged in?

Sorry for the delay, this is really an Eggplant issue.
Running from the command line requires a user with “Console” access. This generally needs to be someone logged into the machine (from the UI) or someone who can run your scripts as root.