// Detect It Easy: detection rule file format
// Author: Arjan Onwezen

// Rewritten by: DosX

init("packer", "Quest PowerGUI");

function detect(bShowType, bShowVersion, bShowOptions) {
    bDetected = PE.isNetObjectPresent("Quest.PowerGUI.ScriptRunner");

    sOptions = (bDetected && !PE.isConsole()) ? "Hide console" : "";

    _setLang("PowerShell", bDetected);
    return result(bShowType, bShowVersion, bShowOptions);
}