[System.Reflection.Assembly]::LoadFrom("$(Split-Path -resolve $myInvocation.MyCommand.Path)\Release\p4api.dll") [P4API.Bootstrapper]::Initialize() $c = New-Object P4API.P4Connection $c.Connect() $c