Changing a dishwasher from hardwired to cord-and-plug
My recent dishwashers have all been corded.  If not, I just purchased an appliance cord (14 ga. or 12ga) and connected it to the terminals on the DW before I installed it. Normally the outlet for the DW is under the sink next to the DW. That may be an issue if the cable feeding the hard wired DW isn't long enough to get to an outlet (surface mounted is fine, you won't be seeing it) in the sink cabinet.   Any splices need to be &quot;permanently accessible&quot;.  I &quot;think&quot; if you had to extend the cable and connected in a box behind the DW that would qualify, but I'm not sure on that.
Also, you need to identify which circuit supports the DW and what else is on it. DWs are supposed to have a dedicated circuit.  Would it be possible during your repairs to run a new cable from the main panel to the DW?