script to capture a window by name (works on main screen only atm) and write the output to file (or youtube)