Powershell chrome.exe force-device-scale-factor 不起作用

Powershell chrome.exe force-device-scale-factor does not work

我正在尝试使用 powershell 使用以下命令以自定义缩放大小打开 chrome

& 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'  http://www.gnu.org/ /force-device-scale-factor=1.5  /incognito

命令以隐身模式打开网站。但是,缩放比例仍为 100%。可能出了什么问题?

这已经回答了一半here

我将代码更改为:

$pathToChrome = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
$tempFolder = '--user-data-dir=c:\temp' 
$zoomScale = "--force-device-scale-factor=1.5"
$startPage = 'https://whosebug.com'

Start-Process -FilePath $pathToChrome -ArgumentList $tempFolder, $startPage, $zoomScale