I'm trying to create a powershell script that setups user "George" after installing RabbitMQ on a new machine.

I can't figure out why this script doesn't work. 

The last step gives me a 404 {"error":"Object Not Found","reason":"\"Not Found\"\n"}

```
$secpasswd = ConvertTo-SecureString 'guest' -AsPlainText -Force
$credGuest = New-Object System.Management.Automation.PSCredential ('guest', $secpasswd)

$secpasswd2 = ConvertTo-SecureString 'george' -AsPlainText -Force
$credAdmin2 = New-Object System.Management.Automation.PSCredential ('george', $secpasswd2)

$body = @{
               'password' = 'george'
               'tags' = 'administrator'
           } | ConvertTo-Json

$vhosts1 = ''
$vhosts1 = Invoke-RestMethod 'http://localhost:15672/api/users/george' -credential $credGuest  -Method Put -ContentType "application/json" -Body $body

write '1:'   $vhosts1

$vhosts2 = Invoke-RestMethod 'http://localhost:15672/api/permissions/%2f/'  -Method get  -credential $credAdmin2

write '2:'  $vhosts2

$body2 = @{
               'username' = 'george'
               'vhost' = '/'
               'configure' = '.*'
               'write' = '.*'
               'read' = '.*'
           } | ConvertTo-Json

write '3:' $body2

$vhosts3 = Invoke-RestMethod 'http://localhost:15672/api/permissions/%2f/george' -credential $credGuest  -Method Put -ContentType "application/json" -Body $body2

write '4:' $vhosts3

```

I've also tried formatting the last step like this:

```
http://localhost:15672/api/permissions/george

```

Same 404 error.

I've tried about 20,000 different ways of sending the command in. From matching other examples perfectly to trying some abstract art and voodoo magic. While watching the managment tool for RabbitMQ I can see George is created. And he has an empty vhost. So the first 3 steps work perfectly.