Openzeppelin Hardhat Plugin throws VM Exception on executing upgraded functions

This script is not present in the tutorial that you linked (OpenZeppelin Upgrades: Step by Step Tutorial for Hardhat - #15).

Can you show the contents of this file?