set an alias for a command ( or function ) and specify parameters? This topic contains 1 reply, has 2 voices, and was last updated by Don Jones 4 years ago. Author Posts October 11, 2013 at 12:36 pm #10716 Ian DouglasParticipant Is it possible to set an alias for a command ( or function ) and specify parameters? For a simplified example — # define alias set-alias -name show-members -value "Get-QADGroupMember -Identity $args" # usage example show-members (I'm trying to do this with some custom functions I have given to users. ) Many thanks! October 11, 2013 at 2:12 pm #10719 Don JonesKeymaster Not an alias, no. Aliases are only nicknames for commands. That said, there's nothing stopping you from defining a function that runs a command and uses specific parameters. That's what "help" is. Author Posts You must be logged in to reply to this topic.