You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: powershell.go
    path of file: ./repos/scan4all/vendor/github.com/masterzen/winrm
    
    the code of the file until where you have to start completion: package winrm

import (
	"encoding/base64"

	"golang.org/x/text/encoding/unicode"
)

// Powershell wraps a PowerShell script
// and prepares it for execution by the w
    
func Powershell(psCmd string) string {
	// Disable unnecessary progress bars which considered as stderr.
	psCmd = "$ProgressPreference = 'SilentlyContinue';" + psCmd

	// Encode string to UTF16-LE
	encoder := unicode.UTF16(unicode.LittleEndian, unicode.IgnoreBOM).NewEncoder()
	encoded, err := encoder.String(psCmd)
	if err != nil {
		return ""
	}

	// Finally make it base64 encoded which is required for powershell.
	psCmd = base64.StdEncoding.EncodeToString([]byte(encoded))

	// Specify powershell.exe to run encoded command
	return "powershell.exe -EncodedCommand " + psCmd
}