It probably makes sense to pull these branches out into their own methods, e.g. something like this:
```ruby
case datastore["TECHNIQUE"]
when "EXE"
  command, args = command_for_exe
when "PSH"
  command, args = command_for_psh
end
session.railgun.shell32.ShellExecuteA(nil,"runas",command,args,nil,5)
```