Make the script runnable locally and adapt ps call