I am trying to launch Chrome in my AWS EC2 Windows Instance from my local windows machine using PowerShell.
I have tried the below commands but they haven't worked.
Invoke-Command -Session $session -ScriptBlock {Start-Process -FilePath www.google.com}
Wrote Selenium java code to launch Chrome, exported it a jar file, copied to my remote machine. I tried to execute it from my local machine using:
Invoke-Command -Session $session -ScriptBlock {java -jar launcbrowser.jar}
The jar file is executing and running the process in background, but it is not launching the browser.