title: Powershell: What's the difference between Alias and Function?
body: <p>Im setting up my powershell profile to create aliases of commonly used commands. <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-alias?view=powershell-7#examples" rel="noreferrer">On Microsoft's documentation</a> it says, if I want to make an alias for a command with parameters, I should make the value of the alias a Function that does that.<a href="https://i.stack.imgur.com/sheIX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sheIX.png" alt="enter image description here" /></a>. However, when I type the name of the function in the command line it works just as well as an alias.</p>
  <p>In other words, in the above picture, if I typed <code>CD32</code> it would behave the same as if I typed <code>Go</code> in the command line</p>
  <p>So my question is: Why do I use aliases pointing to functions when I could just have a function? Are there feature differences between the two?</p>