The act described involves entering a house ("Z"s house) in a manner that constitutes house-breaking (scaling a wall and entering through a window are specified methods in Section 445 - House Breaking). Since the act is committed "at night", it constitutes House Breaking by Night, which is an aggravated form of house-breaking defined under Section 446 of the IPC.