running script on portal locally