When software can help
A broken or unavailable screen does not always mean the iMac itself is unusable. If macOS is still running and the iMac can connect locally, DeskJoin Screen can display its screen on another Mac.
Input still comes from the keyboard and mouse connected to the iMac. If the iMac cannot boot, cannot join the network, or cannot run apps, you will need another repair or recovery path.