def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\schtasks.exe"),
                    event.deep_get("Image", default="").endswith("\\wscript.exe"),
                    event.deep_get("Image", default="").endswith("\\mshta.exe"),
                ]
            ),
            "\\AppData\\Roaming\\Microsoft\\" in event.deep_get("TargetFilename", default=""),
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(".txt"),
                    event.deep_get("TargetFilename", default="").endswith(".xml"),
                ]
            ),
        ]
    ):
        return True
    return False
