Wait Command
This version adds a new command to be used in other scripting, which can wait for a given number of seconds, or until one or more conditions are cleared, allowing a system administrator to determine if it is "safe" to run updates on a Mac system.
The command can wait until the following conditions have cleared: high CPU load, user logged into GUI, FileVault encryption, system on battery power, and screen sleep disabled. See the README for more information.