I've previously used Darko Milevski's post about deleting profiles with PowerShell as a reference for accessing the user profile service properties.
The relevant bits are the lines:
$DisplayName = $profile.DisplayName
$AccountName = $profile[[Microsoft.Office.Server.UserProfiles.PropertyConstants]::AccountName].Value
Some properties are available from the UserProfile $profile object (display name) and others (all I believe) can be accessed with the property constants (AccountName). You can look up the property names in the UPA to get the properties you need (in your case, since it's custom you probably already know the property name).
To import, you reverse the process.