Added Replace command to address insuficient delay with Select-Print operations.