def run_command(command: str) -> str:
    """
    Runs a given command using subprocess module
    """
    if command == "" or command is None:
        return ""
    
    env = os.environ.copy()
    env["LANG"] = "C"
    output, _ = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, shell=True, env=env).communicate()
    return output.decode("utf-8", errors="replace").rstrip("\r\n")

    Runs a given command using subprocess module
    
wifi_password/utils.py