PSProfile.ps1
# References: # 1. Below are the list of predefined vars that can be used: # - $PSScriptRoot [System defined] The folder path for current scipt file, NOT the caller script to call this function # Invoke PSProfile for all MyProfiles in current scope based on load order # Note: MyProfile module may be only installed for x64, but not for x86, vise versa. So the MyProfile module may not exist for current session ($Env:PROCESSOR_ARCHITECTURE). try { Invoke-MyProfile -PSProfile } catch {} |