function Get-QCommand