sqlps -NoLogo -NoExit -NoProfile -OutputFormat {Text | XML} -InputFormat {Text | XML} -Command { - | | -args } -Help | -? ...

sqlps [ [ [-NoLogo] [-NoExit] [-NoProfile]
          [-OutputFormat {Text | XML}] [-InputFormat {Text | XML}]
        ]
        [-Command { -
                  |  [  ]
                  |  [ -args  ]
                  }
        ]
      ]
      [ -Help | -?]

-NoLogo
    Do not display the copyright banner on startup.
-NoExit
    Keep running after completing all startup commands.
-NoProfile
    Do not load a user profile.
-OutputFormat
    Format the output of all objects as either text strings (Text) or in a
    serialized CLIXML format (XML).
-InputFormat
    The input from stdin is formatted as either text strings (Text) or in a
    serialized CLIXML format (XML).
-Command
    sqlps runs the commands specified and then exits, unless -NoExit is also
    specified. Do not specify other characters after the -Command switch,
    they will be read as command arguments.
      -
          Read input commands from the keyboard by using stdin.
       [  ]
          Specifies a string containing the PowerShell commands to be run. use
          the format "{}". The quotation marks identify a string and
          the invocation operator (&) causes sqlps to run the command.
       [ -args  ]
          Specifies a block of PowerShell commands to be run. Use the format
          {}.
-Help | -?
    Show the syntax summary help.