I'm working on a powershell function and need to lookup registry to determine where is OneDrive installed, excluding executalbe, just installation directory.

for example, a registry entry of:
C:\Program Files (x86)\Microsoft OneDrive

This path may change in future versions of windows or for whatever reason,

I tried using Find and F3 to look for this directory but it leads to keys that don't look like permanent.
Is there conventional key for this? or maybe better approach to detect where is onedrive installed using powershell?

Google does not help me.
I think code is not relevant, I just need a key, but here is example pseudo code for registry lookup:

$HKLM = "Need a key here"
$RegistryHive = [Microsoft.Win32.RegistryHive]::LocalMachine
$RemoteKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($RegistryHive, $ComputerName)

$OneDriveRoot = $null
$RootKey = $RemoteKey.OpenSubkey($HKLM)

# ETC...