This function isn't robust enough to handle the Powersploit params example I used for the spec.