
Note: Ensure the drive letter is not being used by another volume on the computer. Now assign a drive letter with the cmdlet given below, replacing the number with the disk number listed in step 1 above, and DriveLetter, which you want to assign to this USB. New-partition -DiskNumber Number -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel Label Replace Number with the number associated with the drive noted in step 1, and Label with the new label which you want to give the new volume.

Windows PowerShell is a powerful command-line tool in Windows that allows you to perform administrative tasks on your computer. How to Format Drive using PowerShell Create Single Partition

How to Format Drive using Command Prompt.
