def rule(event):
    if all(
        [
            "Invoke-TroubleshootingPack" in event.deep_get("ScriptBlockText", default=""),
            "C:\\Windows\\Diagnostics\\System\\PCW"
            in event.deep_get("ScriptBlockText", default=""),
            "-AnswerFile" in event.deep_get("ScriptBlockText", default=""),
            "-Unattended" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
