fix automated_script with compatibility for ash

includes logging for uri to script