Powershell Script to Alias a Command with Parameters

Powershell Set-Alias doesn’t pass arguments to the alias and I want an easy way to launch my editor, so I can easily say: “e file.txt”

Here is my script that launches WebStorm and pass along the parameters (note the special treatment of the “.”

Now I can just type “ws .” and open webstorm with the current folder.