As long as your PC can route internet traffic, you don't need my script when they are in the same PAN (as in same LAN). All you have to do is to set the default routing in N900. I thought I could automate this process by modification my script, but you could just do it manually.