The blog post you have found is from 2012 and refers to an
older version of Windows. While most of it is still correct,
the profile folders are not up to date.
The article you found is more recent from 2023, so is to be
taken seriously.
The "Current user, Current Host" profile location is said to
be in $HOME\Documents\PowerShell
, which refers to
C:\Users\USER-NAME\Documents\PowerShell
.
If you install OneDrive, it will by default backup the
Documents
folder, by relocating it into the OneDrive
sync folder and leaving only a pointer to it in
C:\Users\USER-NAME
.
This means that, if you have accepted the default setup of
OneDrive, your PowerShell profiles are by default synced
to OneDrive, but your reference is to a local folder.
The profiles will be backed up to OneDrive, but the
reference should stay to the local disk, not to the
OneDrive folder in the cloud, to avoid problems when
there is no internet connection.