def rule(event):
    if all(
        [
            "Add-Content $profile" in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    '-Value "IEX ' in event.deep_get("ScriptBlockText", default=""),
                    '-Value "Invoke-Expression' in event.deep_get("ScriptBlockText", default=""),
                    '-Value "Invoke-WebRequest' in event.deep_get("ScriptBlockText", default=""),
                    '-Value "Start-Process' in event.deep_get("ScriptBlockText", default=""),
                    "-Value 'IEX " in event.deep_get("ScriptBlockText", default=""),
                    "-Value 'Invoke-Expression" in event.deep_get("ScriptBlockText", default=""),
                    "-Value 'Invoke-WebRequest" in event.deep_get("ScriptBlockText", default=""),
                    "-Value 'Start-Process" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
