But be careful with NM-B cable. I didn’t find an exact reference in the NEC, but I bet that Article 200 and friends would not approve of the reuse of the bare conductor for anything other than ground and might also disapprove of using the white conductor for anything other than neutral. (If you’re not installing the cable in the wall, maybe it’s not subject to the NEC.)
Get some nice TC cable instead.