I need to launch two Google pages in full screen on a PC with 2 screens, one page for each screen.
Actually this is my code:
$pathToChrome = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
$tempFolder = '--user-data-dir=c:\temp' # pick a temp folder for user data
$startmode = '--start-fullscreen' # '--kiosk' is another option
$startPage1 = 'https://google.com'
$startPage2 = 'https://google.com'
Start-Process -FilePath $pathToChrome ('--new-window', '--start-fullscreen', $startPage1) -ErrorVariable Test
Start-Process -FilePath $pathToChrome ('--new-window', '--start-fullscreen', $startPage2) -ErrorVariable Test
It works but it open one page over the other one. How can I do for open the second page on my second screen?