So, I am making a program to reboot iDevices (if there power buttons are broken), is there any way to induce the iDevice to reboot via the Mac shell?
idevicediagnostics is a Linux tool which can help here. It is also available for macOS according to these instructions.
Once installed you can use
to restart your device.
To restart a specific device connected to a macbook that has more than one device connected to, use:
idevicediagnostics -u udidnumber restart
To install this third-party program, on the Terminal:
brew install libimobiledevice