Added encoded command generation to Invoke-Encode