Script is not running properly getting Window was not found error

Printable View