我正在尝试生成一个特定大小和位置的新 powershell 窗口,目前我有这个:
Start-Process powershell -ArgumentList "-noexit", "-command [console]::windowwidth=50; [console]::windowheight=10;","python myscript.py";
Run Code Online (Sandbox Code Playgroud)
但我找不到使用参数或命令设置窗口位置的方法。
powershell ×1