Modified to support new function "ready_to_run_winrm_commands"