def rule(event):
    if any(
        [
            'Import-Module "$Env:Temp\\' in event.deep_get("ScriptBlockText", default=""),
            "Import-Module '$Env:Temp\\" in event.deep_get("ScriptBlockText", default=""),
            "Import-Module $Env:Temp\\" in event.deep_get("ScriptBlockText", default=""),
            'Import-Module "$Env:Appdata\\' in event.deep_get("ScriptBlockText", default=""),
            "Import-Module '$Env:Appdata\\" in event.deep_get("ScriptBlockText", default=""),
            "Import-Module $Env:Appdata\\" in event.deep_get("ScriptBlockText", default=""),
            "Import-Module C:\\Users\\Public\\" in event.deep_get("ScriptBlockText", default=""),
            'ipmo "$Env:Temp\\' in event.deep_get("ScriptBlockText", default=""),
            "ipmo '$Env:Temp\\" in event.deep_get("ScriptBlockText", default=""),
            "ipmo $Env:Temp\\" in event.deep_get("ScriptBlockText", default=""),
            'ipmo "$Env:Appdata\\' in event.deep_get("ScriptBlockText", default=""),
            "ipmo '$Env:Appdata\\" in event.deep_get("ScriptBlockText", default=""),
            "ipmo $Env:Appdata\\" in event.deep_get("ScriptBlockText", default=""),
            "ipmo C:\\Users\\Public\\" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
