start-process "chrome.exe" '--profile-directory="Default"'
When I run this command few times, it opens my default-profile chrome in separate windows. What can I do, to open new tabs, when my default-profile chrome is already opened?
start-process "chrome.exe" '--profile-directory="Default"'
When I run this command few times, it opens my default-profile chrome in separate windows. What can I do, to open new tabs, when my default-profile chrome is already opened?
This will open a Tab instead of a new window for me:
However, if you only want to refresh a page (like you said in the comments), you could also use a little WindowsScript inside of Powershell like this:
Does that come close?
With VBScript you could also use the
CTRL+<Number>
Combination to switch to a specific tab before refreshing. So you'd have to add$vbscriptShell.SendKeys('^2')
before the F5 key. I also tried opening a new tab by usingCTRL+T
('^T' in VBScript), but that opens a new window and then a new tab for some reason...