You can use explorerOM
[void] [System.reflection.Assembly]::LoadWithPartialName("Microsoft.BizTalk.ExplorerOM")
$server = "."
$connectionString = "SERVER=" + $server + ";DATABASE=BizTalkMgmtDb;Integrated Security=SSPI"
$Catalog = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer
$Catalog.ConnectionString = $connectionString
You will have to add a new Application using "AddNewApplication"
$app = $Catalog.AddNewApplication()
$rcvPort = $app.AddNewReceivePort(0)
$rcvLocation = $rcvPort.AddNewReceiveLocation()
Define properties for the receive port and location.
Good Luck.