@sykramsounds, unfortunately you can't run the TRIGGERcmd agent on a phone. It's probably possible on a rooted Android, but not an iPhone.
Autohotkey isn't necessary in this case. You can just make a .bat file, and paste this text into it and you've got your script:
tcmd --computer laptop --trigger shutdown
shutdown /f /sg /t 1
A lot of PC's allow you to setup the bios so they turn on when the power comes on, so one thing you could probably do is setup your laptop and PC to power on when AC power turns on, then use something like this:
https://www.amazon.com/Compatible-Assistant-Magic-Hue-Certified/dp/B07XNBVVXV
You could write a script that takes an on or off parameter. If it runs with on, it would turn those things on, and if it gets an off parameter, it would shut your laptop and PC down, then turn off AC power.
Those Smart Plugs can be controlled via IFTTT, so your script could run a curl command to call the IFTTT webhook API.