subscribe-filter-replace
Import the Client and Command:
import { Command, Client } from 'amps';
Constructing the command:
const subCmd = new Command('subscribe').topic(topic).filter(newFilter).options('replace');
The command can now be used in execute.