StackOverflow 文件 PowerShell 教程 ISE 模組 測試指令碼 測試指令碼 Created: November-22, 2018 ISE 的簡單而強大的用法是在頂部編寫程式碼(使用直觀的語法著色)並通過簡單地標記它並按下 F8 鍵來執行程式碼。 placeholderCopyfunction Get-Sum { foreach ($i in $Input) {$Sum += $i} $Sum 1..10 | Get-Sum #output 55 ISE 模組