First let the machine stop on the top of the window, then add cement mortar, let the machine work  above the window. Then let the machine work under the window.