title: Powershell Function to autocomplete and change directory
body: <p>I have the following Powershell function to set a directory, nice and simple. When i type dev, auto complete works for the items inside the directory.. </p>
  
  <p>Example: dev ./project  </p>
  
  <p>However when pressing enter, the directory changes to the set-location 'E:\OneDrive\Website Workspace\', not it's child 'E:\OneDrive\Website Workspace\project'.. How would i go about this correctly.</p>
  
  <pre><code>function dev {
      set-location 'E:\OneDrive\Website Workspace\'
  }
  </code></pre>