This guide will help you create a standalone terminal command to reset macOS Continuity, Universal Clipboard, and Handoff. Once installed, you can trigger this fix from anywhere on your Mac.
By default, text files cannot be run as programs. Grant execution permissions by running:
chmod +x handoff-reset