# stop vcxsrv proccess that contains "0.0" in the program window title get-process vcxsrv | where { $_.mainwindowtitle -like "*0.0*" } | stop-process # start vcxsrv process in a large program window on display number one start-process "c:\program files\vcxsrv\vcxsrv.exe" -argument ":0.0 -ac -wgl -multimonitors -dpms"