I've tried following the blog post Schedule a Python Script using Windows Task Schedu... - Esri Community & however the script doesn't seem to have done anything after Windows has run the task?
I reviewed the comments about absolute file paths & everything seems ok.
If I copy & paste the code below into a python command window it works fine but I need to get it working with task scheduler
import arcpy; arcpy.CheckOutExtension("DataInteroperability"); arcpy.ImportToolbox("C:\Toolbox.tbx", 'ImportNSG'); arcpy.ImportNSG_ImportNSG(); arcpy.CheckInExtension("DataInteroperability")