common use script (bash or bat)