PowerShell ISE 是什么
Windows PowerShell 集成腳本環境 (ISE) 是 Windows PowerShell 的主機應用程序。在 Windows PowerShell ISE 中,可以在單一 Windows 圖形用戶界面中運行命令以及編寫、測試和調試腳本,該用戶界面具有多行編輯、Tab 補齊、語法着色、選擇性執行、上下文相關幫助等功能,而且還支持從右到左書寫語言。此主機應用程序最多還可以包括八個會話。 可以自定義 Windows PowerShell ISE 的外觀。Windows PowerShell ISE 還有自己的 Windows PowerShell 配置文件,您可以在其中存儲在 Windows PowerShell ISE 中使用的函數、別名、變量和命令。可以使用菜單項和鍵盤快捷方式來執行可在 Windows PowerShell 控制台中執行的許多相同任務。例如,當您在 Windows PowerShell ISE 中調試腳本時,若要在腳本中設置行斷點,右鍵單擊代碼行,然后單擊“切換斷點”即可。powershell和cmd既有區別又有聯系,cmd和powershell都可以做命令行交互,批處理和powershell腳本功能也相當,Windows PowerShell 是專為系統管理員設計的新 Windows 命令行 shell。Windows PowerShell 包括交互式提示和腳本環境,兩者既可以獨立使用也可以組合使用,與接受和返回文本的大多數 shell 不同,Windows PowerShell 是在 .NET Framework 公共語言運行時 (CLR) 和 .NET Framework 的基礎上構建的,它接受和返回 .NET Framework 對象。環境中的這一根本更改帶來了管理和配置 Windows 的全新工具和方法。Windows PowerShell 引入了 cmdlet(讀作“command-let”)的概念,這是內置到 shell 中的一個簡單的單一功能命令行工具。可以分別使用每個 cmdlet,但是組合使用這些簡單的工具執行復雜任務時才發揮其作用。Windows PowerShell 包括一百多個基本的核心 cmdlet,您可以編寫自己的 cmdlet 並與其他用戶共享它們。與許多 shell 一樣,Windows PowerShell 為您提供了對計算機上文件系統的訪問。此外,使用 Windows PowerShell 提供程序還可以訪問其他數據存儲,如注冊表和數字簽名證書存儲,就像訪問文件系統一樣容易。
運行
可以在 Windows左下角的搜索中,搜索 PowerShell 。
或者點擊開始菜單,滾動下滑然后可以看到Windows PowerShell以及Windows PowerShell ISE的選項,也可以直接在搜索框輸入ISE,回車

運行界面
當運行以后,可以看到下面的運行Windows PowerShell以及Windows PowerShell ISE的界面。
Windows PowerShell界面

運行Windows PowerShell ISE
相對在 PowerShell 運行界面中進行編輯和選擇運行命令要方便快捷的多,Windows PowerShell ISE輸入時還可以使用Tab快速補全,也可以方便的移動光標進行命令的選擇和運行。
不同的系統Windows PowerShell和Windows PowerShell ISE啟動方式不一樣,如下
-
在 Windows Vista、Windows Server 2008 和更高版本的 Windows 中,在“開始”菜單中,依次單擊“開始”、“所有程序”、“附件”、“Windows PowerShell”文件夾和“Windows PowerShell ISE”項。
-
在 Windows XP 和 Windows Server 2003 中,若要啟動 Windows PowerShell,請在“開始”菜單中依次單擊“開始”、“程序”、“附件”、“Windows PowerShell”文件夾和“Windows PowerShell ISE”項。
-
在Windows 10中,若要啟動 Windows PowerShell,請在“開始”菜單中的“程序”菜單中單擊“Windows PowerShell”文件夾並點擊“Windows PowerShell ISE”項。
-
在 Windows PowerShell 控制台、Cmd.exe 或“運行”框中,鍵入“powershell_ise.exe”。
