def rule(event):
    if all(
        [
            "New-PSDrive" in event.deep_get("ScriptBlockText", default=""),
            "-psprovider " in event.deep_get("ScriptBlockText", default=""),
            "filesystem" in event.deep_get("ScriptBlockText", default=""),
            "-root " in event.deep_get("ScriptBlockText", default=""),
            "\\\\" in event.deep_get("ScriptBlockText", default=""),
            "$" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
