Lately I've been setting up my environment on my Windows laptop. What really bothered me is that I was unable to open Sublime directly from Windows Powershell. Turns out it's not that hard to do!
So first, open Windows Command Prompt. Make sure you choose "Run as Administrator" so that you can make the modifications necessary.
Next, paste the following code into the prompt:
1 2 3 4 5 6 7
Close the Command Prompt window and restart PowerShell. Check it out! Now you can use the command
subl to open Sublime or basic file commands such as
subl . to open the folder you are currently in in Sublime.