ProjectWise Web Connection Old vs New issue

Our project creation scripts create the connected project and ProjectWise DI connection “Add-PwConnectedProject -InputFolder $richProject -ConnectedProjectName $projName -ConnectedProjectNumber $projNo -WSGURL "$wsgserver" -Location $projLocation -CountryCode $CountryCode -DataLocation $storageLocation” When we open the project (screenshot below), the ProjectWise Connection is visible. When we click on it to goes to PW Web and no connections can be found. There is a note ‘Looking for other connections?’ Open Older PW Web. When we click here the connection can be made. Question is how can we ensure the connection is made in the ‘New’ PW Web?