#requires -version 2.0 <# Add an ISE Menu shortcut to save all open files. This will only save files that have previously been saved with a title. Anything that is untitled still needs to be manually saved first. #> $sb={ $psise.CurrentPowerShellTab.files | where {-Not ($_.IsUntitled)} | foreach { $_.Save() } } $psise.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("Save All Files",$sb,"Ctrl+Shift+A") | out-null