You can use this little script.
Barycenter "L2-Sol-Earth"
{
ParentBody "Sol"
Orbit
{
Epoch 2451545
RefPlane "Ecliptic"
Period 1.0
SemiMajorAxis 1.0100045459234 // Behind Earth
Eccentricity 0.0167086342
Inclination 0.0
AscendingNode 348.739
LongOfPericen 102.93734808
MeanLongitude 100.46645683
}
}
I put a 'Barycenter' there, but you can also put an object there.
But it is not very accurate because it is a Kepler orbit, and the earth and moon (and the other planets in the solar system) use a special ephemeris file that is more accurate than Kepler's orbits.
For example, you could use something like this script for the telescope.
Object "James Webb Space Telescope"
{
Type "Spacecraft"
Model "spacecraft/[path to the .sss file]/JWST.sss"
ParentBody "Sol"
//MassKg ???
//Radius ???
//RotationPeriod ???
//RotationOffset ???
//Obliquity ???
//TidalLocked false
Orbit
{
Epoch 2451545
RefPlane "Ecliptic"
Period 1.0
SemiMajorAxis 1.0100045459234 // Behind Earth
Eccentricity 0.0167086342
Inclination 0.0
AscendingNode 348.739
LongOfPericen 102.93734808
MeanLongitude 100.46645683
}
}