I have a profile.ps1
in my Documents/WindowsPowerShell
folder which runs when I start pwsh that loads all commands but not a Import-Module -Global ./Modules/test/test.psm1
file. If I type the command in the shell the module is available.
The complete command
Import-Module .OneDriveDocumentsWindowsPowerShellModulesDisplaySettings/DisplaySettings.psm1
The module is dotnet-7.0 c# file.