func RunCommands(run RunParams) (*ExecResponse, error) {
	err := run.Run()
	if err != nil {
		return nil, err
	}
	return run.Wait()
}
// RunCommands executes the Commands specified in the RunParams using
// powershell on windows, and '/bin/bash -s' on everything else,
// passing the commands through as stdin, and collecting
// stdout and stderr.  If a non-zero return code is returned, this is
// collected as the code for the response and this does not classify as an
// error.
RunCommands executes the Commands specified in the RunParams using
powershell on windows, and '/bin/bash -s' on everything else,
passing the commands through as stdin, and collecting
stdout and stderr.  If a non-zero return code is returned, this is
collected as the code for the response and this does not classify as an
error.
// RunCommands executes the Commands specified in the RunParams using // powershell on windows and ' / bin / bash - s ' on everything else // passing the commands through as stdin and collecting // stdout and stderr . If a non - zero return code is returned this is // collected as the code for the response and this does not classify as an // error .
func RunCommands(run RunParams) (*ExecResponse, error) {
	err := run.Run()
	if err != nil {
		return nil, err
	}
	return run.Wait()
}
func RunCommands ( run RunParams ) ( * ExecResponse , error ) { err := run . Run ( ) if err != nil { return nil , err } return run . Wait ( ) }
RunCommands executes the Commands specified in the RunParams using
powershell on windows, and '/bin/bash -s' on everything else,
passing the commands through as stdin, and collecting
stdout and stderr.
RunCommands executes the Commands specified in the RunParams using powershell on windows and ' / bin / bash - s ' on everything else passing the commands through as stdin and collecting stdout and stderr .