I have managed to install the oh-my-posh theme for my PowerShell prompt; however, the theme is not working when I start the PowerShell prompt in admin mode.
I have tried to adjust the profile.ps file by moving the reference to the json file to a public folder
(C:\Users\MyUser\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1):
'oh-my-posh init pwsh --config 'C:\Users\Public\oh-my-posh\themes\jandedobbeleer.omp.json' | Invoke-Expression'
My assumption is that the admin user has access to the 'MyUser' folder.
Maybe this is not the problem, and I am looking in the wrong place.
The normal PowerShell window works like a charm.
How can I make the oh-my-posh theme also work with the PowerShell prompt in administrator mode?

