You haven't supplied the user login after the
-U
(no space).
You will also get a problem with the
-P
as you haven't supplied the password (also no space).
NB both are case-sensitive.
You will then get an issue with the
-S
as you haven't supplied the server name.
Note that osql is to be removed from SQL Server at some time in the future -
sqlcmd[
^] is now the recommended command-line utility