def METHOD_NAME(self, script):
    # Support Powershell/WSL platform
    # Some python distros for windows (e.g, oss-cad-suite)
    # which does not have 'os.uname' support, we should check 'sys.platform' firstly.
    gw_sh = "gw_sh"
    if sys.platform.find("linux") >= 0:
        if os.uname().release.find("WSL") > 0:
            gw_sh += ".exe"
    if which(gw_sh) is None:
        msg = "Unable to find Gowin toolchain, please:\n"
        msg += "- Add Gowin toolchain to your $PATH."
        raise OSError(msg)
    if subprocess.call([gw_sh, "run.tcl"]) != 0:
        raise OSError("Error occured during Gowin's script execution.")
    # Copy Bitstream to from impl to gateware directory.
    copyfile(
        os.path.join("impl", "pnr", "project.fs"),
        os.path.join(self._build_name + ".fs")
    )