Added optional parameter to run script manually