How to efficiently change the order of the custom properties of Sharepoint Online User Profile with Powershell?

So I managed to create a custom property for user profiles in Sharepoint Online. However, the new property appears at the bottom of the list of properties. The only way to move the GUI up is to click the button up next to the user profile property and move it up one line, a time that is extremely boring.

Enter the image description here

I've searched online for more efficient ways to change the order of properties, but all Powershell scripts found apply only to Sharepoint 2013 (or other on-premise server versions, I suppose) – for example: https: // www .evokeit.com / blog / reorder user profile properties on microsoft sharepoint

Is there a way to modify the script for SharePoint Online, or is there another easy way to move properties?