Adding setup script that uses Portal API, converting all scripts to be run from bash to make editting easier