CLI script to Pause and Resume mesh modelling ?

I run RC on my laptop. From 100% the battery lasts about 2 hours when mesh modelling. The power being used is greater than what is provided by the mains adapter and/or dock. Consequently I have to pause the modelling and wait approx. 2 hours for the laptop to recharge before resuming. Currently this is a manual process that needs someone to be in attendance so I do not get the benefit of overnight processing.

Could I request some guidance on writing a script that either;

  1. Pauses and Resumes every two hours.

or

  1. Polls the laptop battery life every fifteen minutes (or other interval) and either Pauses or Resumes based on the value returned.

This might be extended to include creating a Checkpoint, though I have not had much success with these.

Hi, have you tried power save mode for your battery?

Also, you can try to use commands like these: https://stackoverflow.com/questions/19418921/windows-script-to-run-after-a-specific-time

with pauseInstance and unpauseInstance, which could be used with some condition for battery check.