exec commands not working

I have a private instance running and am trying to log into a website using a script.

I am succesfully able to fill in the form fields using setValue, and I can submit the form using submitForm or by clicking on the Submit button. However, there is some validation that has to run, and I need to use JavaScript to ensure that it runs properly. I tried using exec to run some commands but I do not think any of JavaScript is actually being run.

In order to test that theory I started trying very basic commands such as

exec alert(‘test’)

or

exec console.log(1)

I see nothing in the console and no alert pops up when the test is run. How can I tell if the exec commands are working properly?

Environment Details:
OS of Test Agent: Win7 (x86)
Test Browser: Chrome (latest)

Thanks,
Noah