I need to reload my powersehll profiles from my custom script named 'profile.ps1'.
Typing the command '.$profile.All Users Hosts' from powershell everything works like a charm but if I try to use this command in my script nothing happens
Could someone kindly help me?