This PR addresses two issues with pyautogui in the generate_command function:
User Confirmation: Added a prompt for confirmation before executing commands.
Execution Issues: Fixed issues where the last command in a multi-line command string was not executed or a single command was not properly entered.
This PR addresses two issues with pyautogui in the generate_command function: