See Microsoft.com / Docs / PowerShell / Scripting / About Profiles
Profiles are separate for Windows PowerShell 5.1 and PowerShell 7.
- Current User, All Hosts: $Home[My ]Documents\PowerShell\Profile.ps1
- Current user, Current Host: $Home[My ]Documents\PowerShell\Microsoft.PowerShell_profile.ps1
- Current user, Current Host: $Home[My ]Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1