No you can't use the script to install the Nvidia Web Drivers (NWD) for macOS Sierra or High Sierra. Those are the NWD's you need for the Nvidia GTX1070 to work in macOS.
OS X Mountain Lion will not run with full acceleration when you are using a GTX 1070 graphics card, it would be limited to VESA mode, i.e. basic graphics, if it ran at all. The Pascal Series of Nvidia GPU's weren't supported in macOS until Sierra 10.12.4 was released.
You could bork your system by installing the wrong drivers, if the installation wizard would let you install them in the first place.
If you want to use a GTX 1070 you need to update to macOS Sierra 10.12.4 as a minimum.
You could use a Kepler series Nvidia card in Mountain Lion 10.8.5. These are supported natively by Apple for Mountain Lion 10.8.0 all the way up to the final release of Big Sur 11.6.2. No need for any third party kexts or patches.
Below is a list of supported Kepler cards:
700 Series:
- GTX Titan
- GTX Titan Black
- GTX Titan Z (dual GPU card, but only one core will be in use)
- GTX 780 Ti
- GTX 780
- GTX 770
- GTX 760 Ti
- GTX 760
- GT 740 (GK107 variant)
- GT 730 (GK208 variant)
- GT 720
- GT 710 (GK208 variant)
600 Series:
- GTX 690 (dual GPU card, but only one core will be in use)
- GTX 680
- GTX 670
- GTX 660 Ti
- GTX 660 (Must be running a GK104 core, not GK106)
- GTX 650 (GK107 core)
- GT 640 (GK107/GK208 core)
- GT 635
- GT 630 (GK107/GK208 core)
Quadro:
- Quadro K6000
- Quadro K5200
- Quadro K5000
- Quadro K4200
- Quadro K2000D
- Quadro K2000
- Quadro K600
- Quadro K420
- Quadro 410
- NVS 510
I run a number of Hackintosh systems using these Kepler series cards:
- GTX 780 TI
- GTX 690
- Quadro K4200
- Quadro K600