need powershell script simple

Job ID: 36291868

Budget: $8 – $15 USD

need powershell script to pull date from second line of a text file and use that date to replace the date that is in the filename. yyyy-mm-dd format inside of file to yyyymmdd format in filename. need to keep the rest of the filename intact.