I found in researching Richard Truran's post that uhubc will directly control the power to Raspberry Pi Model B+, Model 2 B, Model 3 B (port 2 only), see the following links:
I downloaded the source for uhubctl, installed the required libusb-1.0-0-dev, `sudo apt-get install libusb-1.0-0-dev`, and ran make without problems.
I removed the batteries from my weather station and plugged it into a USB port.
The command 'sudo ./uhubctl -i -p 2 -a 0' turns off the port and the weather station
The command 'sudo ./uhubctl -i -p 2 -a 1' turns on the port and the weather station
Next on to scripts to power off and on the usb port when it locks up.
Mike