This script is a simple graphical user interface (GUI) tool for managing VMware virtual machines (VMs). Using FreeSimpleGUI, it provides buttons to start, stop, list, and restart VMs without blocking the GUI. It checks if the VMware process (vmware.exe
) is running and restarts the VM if necessary. The script uses subprocess.Popen for executing commands in the background, allowing real-time output to be displayed in the GUI. The GUI stays responsive while performing these actions, ensuring a smooth user experience.