Code: Select all
pwsh -FilePath Factorio.ps1
Code: Select all
$process = (Start-Process -FilePath C:\Factorio\bin\x64\Factorio.exe)
What puzzles me is that start-process documentation indicates is should open the process in a new window, but it doesn't - the log appears in the same window as the rest of the script.
I thought it might have been related to installing Powershell 7.x, but the issue occurs on 5.1 as well.
I can't see any relevant options in Factorio Command_line_parameters - have I missed something?
How can I launch Factorio from a script and force the logging only to file?