Why does PowerShell recognize "job" as a command

You have run into how Powershell decides what you intend to run. For what happens, here is what I have been told, or have seen:

When you enter a command, PS looks for...

  • the exact command you have entered
  • for the exact command in the OS path listing(s)
  • the command with Get- prefixed to it

That sequence matches what I recall of what I have read or experienced, but I may have left out a step or two.

While I have never found any official documentation on this, several folks over at Reddit's Powershell subreddit have posted about it over the last few years. I presume that one could dig into the Powershell GitHub code and find the process, but I have never done so.

I also presume that any PS-focused code golf site would also have some ideas on what all is involved.