Short answer no. The token is retrieved based on Twitch receiving the request from your application with your Client ID and Client Secret. This is essentially how OAUTH works - one important piece is never passing the password/account information for the person that you which to receive a token for.

The tokens do expire, based on their documentation. You will need to look at storing the refresh token and taking the appropriate action or requiring re-authentication as needed.

That will not print a token. The OAUTH2 flow (which is demonstrated on Twitch’s site) requires you to request the authorization which opens a web browser window, owned by Twitch, which authenticates the user, and then that page redirects the user back to the authentication page that you defined when you defined your application which then has to either retrieve the data from the body of the JSON message or from the URL (depending upon what type of token you request).