Powershell v3 adds Invoke-WebRequest and Invoke-RestMethod, but I cannot get Invoke-SqlCmd to work from that version. If I drop back to Powershell v2, I can Invoke-SqlCmd, but now Invoke-WebRequest and Invoke-RestMethod are no longer available.
I could 'Invoke-Expression sqlcmd' or '& sqlcmd' but then I think I have to manually marshal the output - which is just a string - to something more objectified for PS.
Is there any way to have all of these methods at once, preferably from PS3?