Enable the console in Settings → Game → "Enable Developer Console" and pick a key to open it. Open the console, paste the copied command block and press Enter: the crosshair applies instantly, no restart needed. If it does not paste all at once, paste it in parts, each line is an independent command.