All examples that automate Excel through PowerShell start with this line:
PS> $Excel = New-Object -Com Excel.Application
This seems to be handling a new instance of Excel, e.g. running $Excel.Visible = $true will show an empty, blank Excel window, not switch to the existing workbook.
If there is already an instance of Excel running, is there a way to connect to it?
$Excel.Visiable = $true- it still opened a new Excel window.[Runtime.Interopservices.Marshal]::GetActiveObject('Excel.Application')does appear to work, assuming the existing instance was created by the same user, as user2587683's answer states. Also note that you mistyped.Visibleas.Visiable.