Recycle Bin Button With Status

I've been using this script for a while, but I've grown increasingly frustrated with how unresponsive it is. Especially if there's a lot of files in the recycle bin, it may take 3 or more attempts for it to launch the "empty recycle bin" dialog. But other times it doesn't seem to work regardless.

I'm not finding a more up to date version of a script like this here, and unfortunately the thread @tbone linked is gone.

Is there a simple modern way to do this? I know Leo posted a simple recycle bin button in 2019, but it doesn't have the functionality to enter the recycle bin, which I like to have.