Right-Angle Adapters and Plug for Air Conditioner Exhaust
Look for the periscope vents at your local home stores or online. This particular one's from Appliance Parts 365, which I have absolutely no ties to.
End caps are also available at home stores too, next to the left handed screwdrivers.