I'm willing to run Visio 2013 silently through PowerShell. At the moment I use the following code:
Add-Type -Path 'Microsoft.Office.Interop.Visio.dll'
$visio = New-Object Microsoft.Office.Interop.Visio.ApplicationClass
$visio.Visible = $false
$visio.Quit()
The code works but I briefly see the Visio splash screen before it is hidden.
I would like to create the application object using Microsoft.Office.Interop.Visio.Application
or Microsoft.Office.Interop.Visio.InvisibleApp
but I can't find the right syntax.
Any help would be greatly appreciated.