However, as @PRIMARYGROUP is a KiXtart macro, one has to invoke KiXtart anyway.
Thus
code:
; cli.kix
if $cli
$rc=execute($cli)
endif

and a call as
code:
kix32 cli $cli="net use x: '\\server\@PRIMARYGROUP'"

_________________________
There are two types of vessels, submarines and targets.