How to best work around spaces in path to PowerShell directory

Hi,

Relatively newbie here (some experience with PS).

With PowerShell storing it’s profile in the Documents\PowerShell or Documents\WindowsPowerShell AND
my company redirecting the Documents folder to OneDrive for Business
I end up with a spaces in my path to those folders;

C:\Users&lt;User>\OneDrive - <Company>\Documenten\PowerShell\

This seems to present all kinds of issues trying to run .ps1 files from that folder.
Any recommendations on how to best handle this situation ?

Thanks

ahh, interesting scenario. So I think you are getting error in loading the profile during the launch of PowerShell , is it ?

ahh, interesting scenario. So I think you are getting error in loading the profile during the launch of PowerShell , is it ?