Run a user-defined script after compiling the project

hardhat

hardhat run {{path/to/script.js}}

click the source code to copy