They're called temporary or emergency battery cable ends. Be careful, they may also cause far more problems than they solve.
Power windows are a great convenience, until they break.