Methods for the Detection of Stellar Rotation Periods in Individual TESS Sectors and Results from the Prime Mission