GUI/GUI.ps1
[CmdletBinding()] param([string]$ConfingFile,[string]$Localize) if (!$Localize) { # 本机语言 $Localize = (Get-Culture).Name } if (Get-Command powershell -ErrorAction Ignore) { powershell -NoProfile -ExecutionPolicy Bypass -File $PSScriptRoot\src\Main.ps1 -ConfingFile $ConfingFile -Localize $Localize | Out-Null return } .$PSScriptRoot\src\Main.ps1 -ConfingFile $ConfingFile -Localize $Localize | Out-Null |