def rule(event):
    if all(
        [
            any(
                [
                    "Get-Service " in event.deep_get("ScriptBlockText", default=""),
                    "Get-ChildItem " in event.deep_get("ScriptBlockText", default=""),
                    "Get-Process " in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            "> $env:TEMP\\" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
