You have to take a complete and separate driver’s test for a motorcycle. That includes written and riding.
A tip from someone who has done it:
Find somewhere with closely spaced orange cones or buy some to put out yourself. Practice going slowly through those without touching them or putting your feet down. That is part of the test and is not easy without practice. They left the cones out for an hour at my local DMV so I nipped over to practice with them for a bit.
The riding test consists of the person doing the testing walking beside you as s/he takes you through a set of cones and around a circle… slowly. The guy testing me just ambled along.
I took the test in the 80’s so it might have changed. Ask a friend what they do now.
It is easier to do this with a smaller bike, as @Judi said, the longer and larger the bike the more difficult. That being said, I did mine on a chopper style bike.