You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been searching the web for any guidelines, examples or best practices for when you want to create functions within or not within a module that allows for local and remote execution, but I haven't found anything.
A good example is the Get-Service cmdlet. If you specify the ComputerName parameter, the cmdlet knows how to handle executing this the specified host. If the ComputerName parameter is not used, then the cmdlet executes on the local computer.