can I load a ps1 file from within a ps1 file.
The end goal is to make a ps1 file that I put in my profile on all my computers and have a floating profile that I can put paths to pocket utilities in.
I’ll probably put this in a code repo, or some outside sharing mechanism.
This is most definitely supported in powershell and I have this exact same setup on my machine
Normal Profile.ps1 Contents
The Profile.ps1 in WinConfig\PowerShell is my version controlled profile which has all of my custom fun inside of it. I have a script which simply generates the standard Profile.ps1 in the normal powershell directory whenever I get a new machine.