amazon web services – “This operation requires an interactive window station” error when launching GUI via jenkins on aws windows instance

I have a windows ec2 instance which runs a build server for a unity game, controlled by jenkins.

When running unity with the -batchMode command, I can make the game build successfully.

I’d like to run some automated tests inside unity, which require the physics system to be running, which can’t happen in batch mode. If I remove that command line parameter, I get this error:

<I> Failed to get cursor position:
This operation requires an interactive window station.

I know the GPU is powerful enough to run the game – if I remote desktop in, then I can run it at 30fps.

How do I get my ec2 instance to run a “window station” to make this launch successfully?