Changing the AddToProfile functionality so Import-Module reflects the usage of the Global switch

I originally only updated the use of $PROFILE to use to $PROFILE.CurrentUserAllHosts instead of $PROFILE as that defaults to $PROFILE.CurrentUserCurrentHost whereas we most likely want it for all hosts.

However I then extended this to make use of the $Global switch, I'm not sure if we want to link that switch to the profile that Import-Module command is added to or not.

If not I'm happy to update the change to put it back to just adding it to CurrentUserAllHosts.