added script to device parameter will use the first it finds.