I'd try with a script using the following outline
sudo nvram -c
which should clear the contents of NVRAM.
curl 'https://sourceforge.net/projects/refind/files/0.11.4/refind-flashdrive-0.11.4.zip/download' --output refind.usbimage
copy SmcFlasher there (https://discussions.apple.com/thread/4855319?answerId=22024754022#22024754022)
shutdown -r now
I don't fully agree with the steps outlined in the article you reference for resetting the SMC on a MacBook with the T2 security chip installed. Instead, try the following.
Resetting the SMC on a MacBook Pro with T2 chip installed
Fully shut down your MBP.
Press and hold the power button for at least 10 seconds
Let go of the power button and wait 5 ...