When using a php script to manipulate a WP install, the force-https plugin will still try to load itself, and the start function will die(), thus making it impossible for the main script to ever execute.
I see a related issue #6 but that seems to be a fix that just detects WP_CLI. In my situation I have a custom CLI script.
My suggestion is that the script should only load itself when not in CLI mode.