Scripting

PowerShell ISE Custom Menu

Here is some code that I am working on for customizing the PowerShell ISE to do some things that I would like it to do.

Update 1/22/2009: After switching to a full WordPress install I don't have a problem uploading code files any more.  Keep any eye on this page for any updates to the custom ISE menu.  Feedback is welcomed.
#
# Add Run with arguments capability
#
$psise.CustomMenu.Submenus.Clear()
$__menu__ = $psise.CustomMenu.Submenus.Add("Run Script With Arguments", $null, $null)
$__menu__.SubMenus.Add("Run", {. $psise.CurrentOpenedFile.FullPath $__scriptargs__}, "Ctrl+Alt+R") | Out-Null


(more…)