In order to start and stop a compute engine using the Cloud Scheduler you can follow Google this tutorial. Here are the steps to follow:
1. Set up your Compute Engine Instance.
2. Deploy the starter Cloud Function. Here is an example.
3. Deploy the stop Cloud Function. Here is an example.
4. Set up the Cloud Scheduler jobs