In reply to Chris Hemedinger.

Thank you for your help.

I am noticing some sporadic behavior when I run multiple powerscripts at the same time to run different Enterprise Guide projects. I am using the 'Read-Only' mode as you described.
It errors out at new-object : Exception has been thrown by the target of an invocation.

+ $EGP = new-object -comObject $obj
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-Object], TargetInvocation
Exception
+ FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Micr
osoft.PowerShell.Commands.NewObjectCommand

But next time I run the same script is runs fine. And the error is not specific to any particular Enterprise Guide Project.

Any clue? Thanks.