Josephson-like currents in graphene for arbitrary time-dependent potential barriers