Replaced Remove-Item with Directory.Delete to ensure proper deletion
Fixed install script