Best way to write standalone scripts for D1 (local and remote)?

Original message was deleted