Been fighting with Powershell to do what I need it to do. It might be a simple solution but I've not found it.
If this question is a duplicate, I do apologize, but I couldn't find the answer I was looking for.

TL;DR at the bottom.

So, to the issue I have. 
I'm trying to add a PS script to context menu via regedit that deletes a folder + files within, it works great on folders without any spaces in it but when I try to delete a folder with spaces (like "New Folder") it throws an error and closes.
(Tried looking for a pause / sleep command with Remove-Item but no luck, except for long scripts with error handling etc.)

I suspect the error is similar to

```
Remove-Item : A positional parameter cannot be found that accepts argument 'Folder'.

```

> 
> At line:1 char:12
>  + Remove-item <<<< New Folder
>  + CategoryInfo : InvalidArgument: (:) [Remove-Item], ParameterBindingException
>  + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
> 
> 
> 

And the code I'm currently using is 

```
cmd /c  PowerShell Remove-Item "%1" -recurse -force

```

I've tried different variations for it to work without luck.
I.E replacing `"%1"` with "pathAsString", added another `"% 1"`, added wildcard `"* *"`, removed the flags. 
Some different variations on the code I've tried:

```
cmd /c PowerShell Remove-Item \"%1\" -recurse -force
cmd /c PowerShell Remove-Item & "{"%1" -recurse -force"}"

```

TL;DR
`cmd /c PowerShell Remove-Item "%1" -recurse -force` ignores folders with white spaces, tried various things.
Usage in Context Menu (via Regedit).

Might be a solution that's obvious but I don't see it.