help format-list outputs the help for format-list.
format-list | help outputs the help for help (get-help).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Help is a function that essentially redirects to:
If you look at this function’s definition, you will see that it accepts a positional argument tagged with
ValueFromPipelineByPropertyNamewith an argument ofName.This basically means, if it sees an argument with a property called
Name, it binds that as an input parameter. So, when you do:the format-list command is run (and nothing is returned), so the help function thinks it received no arguments.
When you do:
You are passing a string argument. The string type does not have a
Nameprooperty, so you’ll get an error message saying that it can’t bind the arguments. However, if you tried:you can see the the command format-list does have a Name property, so if you tried
You get the help for
format-list.