For this type of thing you're now into the realm of having to write your own Sublime Text plugin which involves dabbling in some Python.
In a nutshell, you'd decide on which key mappings you want to use to open a PowerShell window (and ideally it'd open that window with PowerShell set to use the path of where your currently edited file resides), for example:
{
"keys": ["shift+f12"],
"command": "open_powershell_window"
}
You'd then map this to the desired behaviour (open a PowerShell window) in your plugin:
import sublime, sublime_plugin
# maps to open_powershell_window by converting to lower case and word-
# splitting using underscores
class OpenPowerShellWindowCommand(sublime_plugin.TextCommand):
def run(self, edit):
# magic to open and run powershell
However, fortunately there's a plugin called Sublime Terminal which does this for us (and for other shells, depending on your OS). It'll either open a terminal window with the path set to your project folder, or your currently edited file.
You can install this using Package Control, just do Install Package
and search for "Terminal" (look for the wbond.net url in the description to make sure you get the right one, it's at v1.4.0 just now).
You can find the source code here:
https://github.com/wbond/sublime_terminal