How do I add a PowerShell cmdlet or function to my machine so that it is always available?
问题 If I find (or create) a new PowerShell cmdlet (or function), how do I add it to my machine? Do I copy it to a particular folder? Do I put its content in a particular file? Do I need to authorize it, or sign it, or give it permission in some way? I don't want to use it in just one session; I want it to be available whenever I use PowerShell on this machine. 回答1: As Alex mentions, any function defined in your profile or in a script that gets "dotted" into your profile will always be available.